this should fix #17, as all leading new lines were replaced with a single space, which in turn was rendered before the # of a headline
14 lines
260 B
Python
14 lines
260 B
Python
from markdownify import markdownify as md
|
|
|
|
|
|
def test_single_tag():
|
|
assert md('<span>Hello</span>') == 'Hello'
|
|
|
|
|
|
def test_soup():
|
|
assert md('<div><span>Hello</div></span>') == 'Hello'
|
|
|
|
|
|
def test_whitespace():
|
|
assert md(' a b \t\t c ') == ' a b c '
|