Test newline_style

This commit is contained in:
André van Delft
2021-04-05 10:47:55 +02:00
parent c04ec855dd
commit 16dbc471b9

View File

@@ -1,4 +1,4 @@
from markdownify import markdownify as md, ATX, ATX_CLOSED
from markdownify import markdownify as md, ATX, ATX_CLOSED, BACKSLASH
import re
@@ -86,6 +86,7 @@ def test_nested_blockquote():
def test_br():
assert md('a<br />b<br />c') == 'a \nb \nc'
assert md('a<br />b<br />c', newline_style=BACKSLASH) == 'a\\\nb\\\nc'
def test_em():