Closed maelle closed 5 years ago
When I convert Markdown to XML, the alignment information is lost.
To keep it, I could convert to html instead, but this creates at least one problem: code blocks are transformed to something harder to parse, information seems lost <pre><code class="language-{r">knitr
.
So for now my package will lose alignment of tables.
@jeroen do you think there could be a way for commonmark::markdown_xml
to keep the alignment of cells as an arbitrary attribute?
I think this is fixed in the dev version
No wait it looks like that attribute is not stored in the xml. Hmmm 🤔
I think you should open an issue at the Github cmark repo: https://github.com/github/cmark. It looks like they forgot to encode the alignment attribute in the xml.
This was fixed in commonmark 1.6
Asking because of my
tinkr
package.