kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
1.72k
stars
274
forks
source link
Odd behavior with nested table and mixing block and inline elements #803
Closed
vincerubinetti closed 8 months ago
Not sure if this belongs here or in kramdown/parser-gfm. I'm suspecting it's here.
Very specific case here. I'm using Jekyll (default kramdown parser) and getting weird behavior with nested tables.
Input:
Output:
Interestingly, in my IDE vscode, the syntax highlighting seems to think there is something wrong with this:
If I remove the newline and space between the span and the nested table, I get this also wrong and weird behavior:
If I wrap the nested stuff in a single block element...
... or if I remove the span and only have the nested table, I get what is expected:
Btw, according to the HTML spec and validator, this is all perfectly valid HTML.