We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20c5062 commit e3b79aaCopy full SHA for e3b79aa
src/lib/components/script-notes/script-notes.svelte
@@ -20,6 +20,9 @@
20
$: {
21
const lines = notes.split('\n\n')
22
content = lines.map((line) => {
23
+ // regex magic generated by ChatGPT: allows escaped '*' characters to be bolded
24
+ const boldRegEx = /(?<!\\)\*\*([^*\n\\]*(\\.[^*\n\\]*)*)\*\*(?!\\)/g
25
+ line.replace(boldRegEx, '<strong>$1</strong>')
26
if (line.startsWith('```') && line.endsWith('```')) {
27
return {
28
type: 'code',
0 commit comments