mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Table class attributes not parsing #759
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 @Laim on GitHub (Oct 28, 2025).
I'm not entirely sure if this is by-design or was never added, so, sorry in advance if it was. First time using Markdig. I'm trying to make a previewer, I use Jekyll and Kramdown for my blog and the below is the existing table layout system I use
This is my Pipeline
This is the table I am trying to output
As that it works without issue when rendering it in WebView2; but if I add class attributes to it, it doesn't render it at all?
Inputted markdown complete:
Output:
*Note having the : after the first curly brace doesn't actually seem to make a difference.
@Laim commented on GitHub (Oct 28, 2025):
I'm an idiot.
Doesn't work, but you know what does work?
🤦
@xoofx commented on GitHub (Oct 29, 2025):
It is slightly explained in the GenericAttributesSpecs, but as each spec doesn't reference other specs (e.g. table spec), it might not be completely clear:
So as you discovered, table attributes can only be put currently before the table, which is internally considered as a paragraph before it is turned into a table.