diff --git a/markdown.py b/markdown.py index 64b7676d4..9bb7cafe2 100644 --- a/markdown.py +++ b/markdown.py @@ -297,7 +297,7 @@ def markdown_to_html(markdown: str) -> str: for hsh, hashes in titles.items(): if line.startswith(hashes): line = line.replace(hashes, '').strip() - line = '<' + hsh + '>' + line + '' + line = '<' + hsh + '>' + line + '\n' ctr = -1 break html_str += line