pypandoc icon indicating copy to clipboard operation
pypandoc copied to clipboard

markdown tables are interpreted as text when converting with convert_text

Open enricofer opened this issue 3 years ago • 0 comments

I'm getting an issue converting markdown containing tables. If I use convert_text method using markdown string definition, tables are interpreted as text not as table Otherwise if I write markdown string to file and convert it with convert_file method I get table objects as expected Issue tested with odt output format

mdstring = """
| a | b | c |
| --- | --- | --- |
| 1 | 2 | 3 |
| 4 | 5 | 6 |
"""
pypandoc.convert_text(md_string, 'odt', format='commonmark',outputfile='tab_ko.odt')

pypandoc.convert_file('tab.md','odt',outputfile='tab_ok.odt')

tab.zip

enricofer avatar Oct 20 '20 10:10 enricofer