optimize empty-line handling for li and blockquote content

Signed-off-by: chrispy <chrispy@synopsys.com>
This commit is contained in:
chrispy
2024-12-30 08:22:33 -05:00
parent 600f77d244
commit 17c3678d0e
3 changed files with 34 additions and 14 deletions

View File

@@ -62,7 +62,7 @@ def test_blockquote():
def test_blockquote_with_nested_paragraph():
assert md('<blockquote><p>Hello</p></blockquote>') == '\n> Hello\n\n'
assert md('<blockquote><p>Hello</p><p>Hello again</p></blockquote>') == '\n> Hello\n> \n> Hello again\n\n'
assert md('<blockquote><p>Hello</p><p>Hello again</p></blockquote>') == '\n> Hello\n>\n> Hello again\n\n'
def test_blockquote_with_paragraph():