diff --git a/src/webpage/markdown.ts b/src/webpage/markdown.ts index 2b626bd..5087b82 100644 --- a/src/webpage/markdown.ts +++ b/src/webpage/markdown.ts @@ -1057,7 +1057,7 @@ class MarkDown { tw.pop(); text = tw.join(""); } - const boxText = text + txt + end; + const boxText = text + txt + (end ?? ""); box.textContent = boxText; const len = text.length + txt.length; text = boxText;