feat(beta): public spaces

This commit is contained in:
Philipinho
2026-09-05 11:25:50 +01:00
parent 5b85464561
commit a12bf42078
117 changed files with 7593 additions and 716 deletions
@@ -61,6 +61,11 @@ export function markdownToHtml(
.trimStart();
resetFootnotes();
const html = marked.parse(markdown).toString();
// marked always closes fenced code with a newline that the editor keeps as
// an empty trailing line inside the code block.
const html = marked
.parse(markdown)
.toString()
.replace(/\n<\/code><\/pre>/g, "</code></pre>");
return html + renderFootnotesList();
}