From 966c88747b82903feaeab2bcecc8cb6efdc57d0e Mon Sep 17 00:00:00 2001 From: mirabilos Date: Thu, 1 Feb 2024 00:18:53 +0100 Subject: [PATCH] ensure paragraph start tags begin a paragraph (#92) --- markdownify/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdownify/__init__.py b/markdownify/__init__.py index bf765ec..300391f 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -338,7 +338,7 @@ def convert_p(self, el, text, convert_as_inline): width=self.options['wrap_width'], break_long_words=False, break_on_hyphens=False) - return '%s\n\n' % text if text else '' + return '\n\n%s\n\n' % text if text else '' def convert_pre(self, el, text, convert_as_inline): if not text: