Table inside div is not compiling correctly due to indent #2245
-
I have a remarkGfm-formatted table embedded inside a div, but unfortunately it doesn't compile properly. I run my mdx through a pre-parsing step that I have replicated in this sandbox. If you see the before and after, you can see that the code inside the div got indented after the parsing step. Is there any way to prevent this? I discovered that removing the indent displays the table properly. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 17 replies
-
What do you mean it doesn’t compile correctly? |
Beta Was this translation helpful? Give feedback.
definitely possible! might also already be fixed in https://github.com/micromark/micromark-extension-gfm-table/releases/tag/1.0.6, have you deleted
node_modules
and tried reinstalling? Otherwise, that’s the project where the bug goes.There’s a related test here: https://github.com/micromark/micromark-extension-gfm-table/blob/f5e8ac19d01ee5c6ad1113c3fec1f44e205450bf/test/index.js#L367-L378