From d0f688d2e4e225b65da1d6745687f00b0ce839f6 Mon Sep 17 00:00:00 2001 From: AlexVonB Date: Thu, 4 Jul 2019 16:26:09 +0200 Subject: [PATCH] Add newline before and after a markdown list Fixes matthewwithanm#5 as well as an issue where `

foo

` gets converted to `foo * bar` which is not correct --- markdownify/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdownify/__init__.py b/markdownify/__init__.py index 12be28e..25608bf 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -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