import pytest from markdown_it import MarkdownIt @pytest.mark.parametrize( "input,expected", [ ("#", "
\n"), ("###", "\n"), ("` `", "
\n"),
("-", "p
\n"), ("[reference]: /url", ""), (" indented code block", "indented code block\n
\n"),
("> test\n>", "\n\n"), ], ) def test_no_end_newline(input, expected): md = MarkdownIt() text = md.render(input) assert text == expectedtest
\n