diff --git a/src/Markdown.ts b/src/Markdown.ts index 96169d4011d..4adc450fca2 100644 --- a/src/Markdown.ts +++ b/src/Markdown.ts @@ -56,6 +56,12 @@ function isAllowedHtmlTag(node: commonmark.Node): boolean { function isMultiLine(node: commonmark.Node): boolean { let par = node; while (par.parent) { + // commonmark Parser separate quotes with blank quoted lines between them with + // paragraphs, so we need to consider it when the markdown is only a multiline quote. + if (par.type === 'block_quote') { + break; + } + par = par.parent; } return par.firstChild != par.lastChild;