diff --git a/shared/naturalcrit/markdown.js b/shared/naturalcrit/markdown.js index b0844debc..5be80ac97 100644 --- a/shared/naturalcrit/markdown.js +++ b/shared/naturalcrit/markdown.js @@ -96,7 +96,7 @@ const mustacheDivs = { while (delim = blockRegex.exec(match[0])?.[0].trim()) { if(!tags) { tags = `${processStyleTags(delim.substring(2))}`; - endTags = delim.length; + endTags = delim.length + src.indexOf(delim); } if(delim.startsWith('{{')) { blockCount++;