From eea893c6f7eaa4d1453d2020f268ade9fe5d83ff Mon Sep 17 00:00:00 2001 From: Raul Bocanegra Algarra Date: Wed, 18 Dec 2024 00:46:34 +0100 Subject: [PATCH] Update markdown2.py --- lib/markdown2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/markdown2.py b/lib/markdown2.py index f7fc207b..01380593 100755 --- a/lib/markdown2.py +++ b/lib/markdown2.py @@ -3418,7 +3418,7 @@ def sub(self, match: re.Match) -> str: body = body.strip('\n') if body: hlines.append('') - for line in body.strip('\n').split('\n'): + for line in body.split('\n'): hlines.append('') cols = [re.sub(escape_bar_re, '|', cell.strip()) for cell in re.split(split_bar_re, re.sub(trim_bar_re, "", re.sub(trim_space_re, "", line)))] for col_idx, col in enumerate(cols):