mirror of
https://github.com/docmost/docmost.git
synced 2026-09-11 07:56:54 +08:00
feat(beta): public spaces (#2473)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user