add blank line before ATX-style headings to avoid ambiguity (#178)
Signed-off-by: chrispy <chrispy@synopsys.com>
This commit is contained in:
committed by
GitHub
parent
7fec8a2080
commit
f24ec9e83c
@@ -373,8 +373,8 @@ class MarkdownConverter(object):
|
||||
text = all_whitespace_re.sub(' ', text)
|
||||
hashes = '#' * n
|
||||
if style == ATX_CLOSED:
|
||||
return '\n%s %s %s\n\n' % (hashes, text, hashes)
|
||||
return '\n%s %s\n\n' % (hashes, text)
|
||||
return '\n\n%s %s %s\n\n' % (hashes, text, hashes)
|
||||
return '\n\n%s %s\n\n' % (hashes, text)
|
||||
|
||||
def convert_hr(self, el, text, convert_as_inline):
|
||||
return '\n\n---\n\n'
|
||||
|
||||
Reference in New Issue
Block a user