Closed buhtz closed 5 months ago
You need to use the table extension: https://python-markdown.github.io/extensions/tables/#usage
Ah thanks. Why is this an extension? Technically what is it? Another module (py-file) imported? Why is it separated.
Is there an in-between format while converting? I don't need HTML but the structure.
Python Markdown is an old-school Markdown parser (not CommonMark) based on the original spec. Tables were not included in the original spec, probably because they are clunky, even with such an extension (that is my speculation). It was provided as an extension though. It has become pretty ubiquitous in modern Markdown implementations, but originally, it was an extension and remains so in this library.
Do you see away to get the "in-between format" of a table after parsing it? I need to separate the parsing and the conversion into HTML.
What "in-between format" are you talking about? What format do you think you are trying to get? I'm not sure what you are doing specifically, but I suspect it extends past the scope of what Python Markdown intends to offer.
What "in-between format" are you talking about? What format do you think you are trying to get?
For example a two-dimensional array with all cells.
Thanks in advance
It doesn't have that. If you want that, you'd have to fork the table extension as is and modify it to do what you want it to do. Python Markdown's goal is to convert that syntax to HTML, and that is what it does.
Is my diagnosis correct that your package do not support markdown tables?