dont replace newlines and tabs with spaces

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
This commit is contained in:
AlexVonB
2020-12-29 10:28:50 +01:00
parent 3544322ed2
commit 4f8937810b
3 changed files with 6 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ import six
convert_heading_re = re.compile(r'convert_h(\d+)')
line_beginning_re = re.compile(r'^', re.MULTILINE)
whitespace_re = re.compile(r'[\r\n\s\t ]+')
whitespace_re = re.compile(r'[\t ]+')
html_heading_re = re.compile(r'h[1-6]')