mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-10 14:00:05 +00:00
PipeTable: NewLine > Code Delimiter > Column Delimiter Precedence #357
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 @SebastianRaffel on GitHub (Apr 14, 2020).
A new line inside of pipe tables should have a higher precedence than a code delimiter. Pipe tables are not designed for multi line cells, therefore code inside pipe tables may not be multiline.
Currently backticks that are not in the same cell break the complete pipe table. Example:
Result:
Desired:
It is safer to recognize code blocks in one line only, as it only breaks that particular line, not the whole table. Example:
markdown-it demo
@xoofx commented on GitHub (Apr 14, 2020):
Hm, not sure I want to change that behavior for this, as markdown-it is not a ground truth either here (it is even incorrect, but it parse something as table while it should not)
It is currently a known differences with other markdown engines but there is no real consensus.
Ideally, I would like to introduce a mode that match GitHub Markdown behavior (as it is the most common usage of Markdown these days).
@SebastianRaffel commented on GitHub (Apr 14, 2020):
Hey, thanks for the reply!
I agree, a GFM option would be best.
I'll use Babelmark for comparisons in the future :)