How to detect if ESAST originated from MD or MDX in a Recma plugin #199
Unanswered
talatkuyuk
asked this question in
General
Replies: 1 comment 13 replies
-
If it has positional info, it came from original source code. |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm developing a new
recma
plugin that analyzes theESAST
to apply certain transformations. However, I need to determine whether the ESAST was generated from "md" or "mdx" content, because the plugin should only apply changes if the original content was MDX.How can I detect or differentiate whether the
ESAST
comes from "md" or "mdx"?Beta Was this translation helpful? Give feedback.
All reactions