mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-11 05:44:45 +00:00
Codeinline in table #166
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 @yishengjin1413 on GitHub (Nov 29, 2017).
@xoofx I found an issue for codeinline in table, see the follow example:
it will be rendered as :
Would you like to follow table rule here?
If you don't got enough time to fix this, I can help to provide a PR.
BTW, is there any reason why PipeTableParser is a InlineParser? It's should more like a BlockParser. Seems all the leafinline rule (which can contain '|') will break the table in this way.
@xoofx commented on GitHub (Nov 29, 2017):
The reason for this parsing strategy was detailed a bit in this discussion
So if you look on babelmark, for this example:
we are getting quite different results.
So the parsing strategy was to allow backstick (but also other inlines, like HTML inline where you could use
|inside an attribute) to work accordingly so that if a|is put inside, it is not detected as a|of the table.But also looking at this example:
I can see that now GitHub is handling things quite differently from what I remember...
So, hm, maybe we should have a a pipetable parser option to allow github like parsing that is going to be quite different from the parsing we have today... so likely implemented entirely in separate method (if we want to keep a single Pipetable parser with configurable options).
I don't have time right now for this, so let me know if you could come up with something.