mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-11 13:54:50 +00:00
Tables are not rendered properly unless there is a new line before them #697
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 @dusanrad on GitHub (Sep 28, 2024).
Consider a following piece of code:
It prints single paragraph without converting the table to html:
If we just add new line after the
Here is the table:part:then everything gets converted properly:
This is different from how other Markdown libraries are rendering it. It is also different from how Github renders it. If I just paste Markdown code from the first example in the text of this issue we properly rendered table:
Here is the table:
Let me know if more information is needed.
@ghost commented on GitHub (Oct 10, 2024):
希望修复这个问题,先谢谢你,我一直在找这个问题,现在找到了,谢谢你,希望赶紧修改这个问题
@xoofx commented on GitHub (Oct 15, 2024):
When markdig was implemented, it was based on pandoc behavior. The parsing of pipe tables is a complicated beast, and as this library is mainly in maintenance mode, I won't take the time to fix it, but if someone is brave enough, a PR is welcome.
@snnz commented on GitHub (Nov 24, 2024):
There is an explicit rule in the specs:
But I can't find where it could possibly come from in the pandoc specs.
GFM is different, and not only in this aspect:
So what behavior is currently expected (or desired)?