Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit d939e45

Browse files
Fix multiline paragraph rendering as single line (#7210)
1 parent 35d4ec6 commit d939e45

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Markdown.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ function isAllowedHtmlTag(node: commonmark.Node): boolean {
5656
function isMultiLine(node: commonmark.Node): boolean {
5757
let par = node;
5858
while (par.parent) {
59+
// commonmark Parser separate quotes with blank quoted lines between them with
60+
// paragraphs, so we need to consider it when the markdown is only a multiline quote.
61+
if (par.type === 'block_quote') {
62+
break;
63+
}
64+
5965
par = par.parent;
6066
}
6167
return par.firstChild != par.lastChild;

0 commit comments

Comments
 (0)