Fix newline start in header tags (#89)
* Fix newline start in header tags
This commit is contained in:
committed by
GitHub
parent
a2f82678f7
commit
f33ccd7c1a
@@ -265,7 +265,7 @@ class MarkdownConverter(object):
|
||||
return text
|
||||
|
||||
style = self.options['heading_style'].lower()
|
||||
text = text.rstrip()
|
||||
text = text.strip()
|
||||
if style == UNDERLINED and n <= 2:
|
||||
line = '=' if n == 1 else '-'
|
||||
return self.underline(text, line)
|
||||
|
||||
Reference in New Issue
Block a user