Open
Description
I'm trying to have Shiki Twoslash support in my mdx files, but I'm not sure it's currently possible.
My idea was to parse the original file as an AST, extract the code fences, send them to JavaScript for processing, and return them back before serializing it into mdx. However, the API here seems to only expose the compile
function, which does both parsing and transformation. Would it be reasonable to split them in two operations?
Metadata
Assignees
Labels
No labels
Activity