added --- rendering to markdown

This commit is contained in:
2026-01-16 23:27:18 -05:00
parent ad05b63285
commit 2e6dc5c028
3 changed files with 15 additions and 1 deletions

View File

@@ -172,6 +172,14 @@ function renderMarkdown(rawText) {
continue;
}
if (/^(\s*[-*_])\1{2,}\s*$/.test(line)) {
flushParagraph();
closeList();
closeBlockquote();
result.push("<hr>");
continue;
}
if (isQuoteLine) {
if (!inBlockquote) {
flushParagraph();