From 28afd1d980224c2d5824c22c6cfaf5b3de7c6683 Mon Sep 17 00:00:00 2001 From: Robert Patterson Date: Sat, 11 Mar 2023 10:50:35 -0600 Subject: [PATCH] I think this should work, but I haven't figured out how to test it. --- src/lib/components/script-notes/script-notes.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/components/script-notes/script-notes.svelte b/src/lib/components/script-notes/script-notes.svelte index 240e1a3..3aff16e 100644 --- a/src/lib/components/script-notes/script-notes.svelte +++ b/src/lib/components/script-notes/script-notes.svelte @@ -20,6 +20,9 @@ $: { const lines = notes.split('\n\n') content = lines.map((line) => { + // regex magic generated by ChatGPT: allows escaped '*' characters to be bolded + const boldRegEx = /(?$1') if (line.startsWith('```') && line.endsWith('```')) { return { type: 'code',