added tests for linebreaks in table cells

This commit is contained in:
AlexVonB
2024-03-26 21:05:31 +01:00
parent 0477a0c8a0
commit 96a25cfbf3
2 changed files with 22 additions and 1 deletions

View File

@@ -370,7 +370,7 @@ class MarkdownConverter(object):
return '\n\n' + text + '\n'
def convert_td(self, el, text, convert_as_inline):
return ' ' + text.strip() + ' |'
return ' ' + text.strip().replace("\n", " ") + ' |'
def convert_th(self, el, text, convert_as_inline):
return ' ' + text + ' |'