markdown icon indicating copy to clipboard operation
markdown copied to clipboard

blockquote inside list do not work

Open DenisDuev opened this issue 3 years ago • 1 comments

Same as: https://github.com/gomarkdown/markdown/issues/242, the difference is that the blockquote is inside list.

For example:

1. list
  > blockquote

Returns:

<ol>
<li>list
&gt; blockquote</li>
</ol>

Expected:

<ol>
<li>list</li>
</ol>
<blockquote>
<p>blockquote</p>
</blockquote>

DenisDuev avatar Jun 14 '22 12:06 DenisDuev

a list in go-markdown needs a newline to tell the parser it has block level elements. Your list example doesn't have a newline, so the parser doesn't do that scan.

Can we always set ast.ListItemContainsBlock? Dunno

miekg avatar Jun 14 '22 12:06 miekg