By adding the remarkPlugins option, I can write a small plugin to support indexing in the main app. We recently decided we're going to refocus this repo to only deal with converting MDX to React. Recently, we've been adding a lot of code that is specific only to our editor, and we'd like to move that someplace.
The problem I'm trying to solve is for indexing. When converting mdast to hast, in MDX, we lose some information. remark-rehype doesn't know what to do with mdxJsxFlowElements and replaces them with div's.
🧰 Changes
Adds an option for remark plugins.
By adding the
remarkPlugins
option, I can write a small plugin to support indexing in the main app. We recently decided we're going to refocus this repo to only deal with converting MDX to React. Recently, we've been adding a lot of code that is specific only to our editor, and we'd like to move that someplace.The problem I'm trying to solve is for indexing. When converting
mdast
tohast
, in MDX, we lose some information.remark-rehype
doesn't know what to do withmdxJsxFlowElements
and replaces them withdiv
's.mdx
mdast
hast

🧬 QA & Testing