From 8d94e5fbe01c0453f9e4264df5c67743ea8923b7 Mon Sep 17 00:00:00 2001 From: Louis David Bolack Date: Fri, 10 Nov 2023 23:10:01 -0600 Subject: [PATCH] Update shared/naturalcrit/markdown.js Co-authored-by: Trevor Buckner --- shared/naturalcrit/markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/naturalcrit/markdown.js b/shared/naturalcrit/markdown.js index c7b389b5a..8cafe1ca5 100644 --- a/shared/naturalcrit/markdown.js +++ b/shared/naturalcrit/markdown.js @@ -209,7 +209,7 @@ const mustacheInjectBlock = { const superSubScripts = { name : 'superSubScripts', level : 'inline', - start(src) { return src.match(/\^\^[^\s].+[^\s]\^\^/m)?.index; }, // Hint to Marked.js to stop and check for a match + start(src) { return src.match(/\^\^/m)?.index; }, // Hint to Marked.js to stop and check for a match tokenizer(src, tokens) { const superRegex = /^\^\^(?!\s)(?=([^\n\^]*[^\s\^]))\1\^\^/m; const subRegex = /^\^\^\^([^\s\^][^\^]*[^\s\^])\^\^\^/m;