Add newline before and after a markdown list

Fixes matthewwithanm#5 as well as an issue where `<p>foo<p><ul><li>bar</li></ul>` gets converted to `foo * bar` which is not correct
This commit is contained in:
AlexVonB
2019-07-04 16:26:09 +02:00
committed by GitHub
parent 5ac08522be
commit d0f688d2e4

View File

@@ -153,7 +153,7 @@ class MarkdownConverter(object):
el = el.parent
if nested:
text = '\n' + self.indent(text, 1)
return text
return '\n' + text + '\n'
convert_ul = convert_list
convert_ol = convert_list