Open brandonweiss opened 3 years ago
I think the issue might be here: https://github.com/Symbitic/remark-plugins/blob/master/packages/remark-deflist/src/index.js#L44 where it's using mdast-util-from-markdown, which by default only parses Markdown. However it accepts an options
array of extensions, so I think for our use case, would need to include mdast-util-mdx-jsx.
I’m using MDX and I added
remark-deflist
as a plugin so I could so something like this:I assumed that would work but it seems to throw an error. I don’t totally understand why, but MDX is new-ish and has some quirks so when I hit one I usually work around it.
Next I tried
remark-attr
and did something like this.This didn’t work either which seemed a bit more surprising. I thought maybe it was a plugin ordering thing, like
remark-deflist
had to be beforeremark-attr
but that didn't seem to make a difference.I’m a bit new to remark so I’m not sure whether this should work or not, but it seems like it should?