mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
Simple table normalization strips all table symbols #551
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ricardoboss on GitHub (Jul 27, 2022).
Hi, great project!
I use markdig in a project to normalize incoming Markdown files and to gather metadata about the document. Now some of these documents include tables and I noticed that they are not rendered at all (I use a JS renderer for markdown, but that one works just fine). As it turns out, markdig seems to strip all table symbols in the normalization step.
I have a reproduction, which closely resembles the actual code used: https://github.com/ricardoboss/markdig-table-normalization
The gist of it is this:
Program.cstest.mdAnd I expected the output to be same or somewhat formatted, but the actual output is this:
@MihaZupan commented on GitHub (Jul 27, 2022):
I think you are just missing a
pipeline.Setup(renderer)call to add the renderer for tables.Edit: On second thought, I don't think we have a normalization renderer for tables at all.
Normalization is way less polished than Html, and isn't implemented for most extensions.
@chucker commented on GitHub (Jul 27, 2022):
https://github.com/xoofx/markdig/issues/155 doesn't list tables yet, so it might simply not be implemented at this point.
@MihaZupan commented on GitHub (Aug 2, 2022):
Duplicate of #155