Fix issue with Markdown rendering after line break in strict mode

This commit is contained in:
Andrew Dupont 2024-01-22 11:49:05 -08:00
parent 4a91444ded
commit 7c12c97a82

View File

@ -292,8 +292,8 @@ function renderMarkdown(content, givenOpts = {}) {
if (match) {
// We define breakline as a custom Token Type
let token = state.push("html_inline", "breakline", 0);
token.content = "<br/>";
state.pos += "<br/>".length;
token.content = "<br>";
state.pos += match[0].length;
return true;
}
}