-
Hey there, this is kind of a continuation of the question I asked here. I've made a fair bit of progress on this to the point where I can now transform e.g. The thing I need to figure out now though is how to map something like My Question: is it possible to write a micromark extension that works with micromark-extension-math in such a way that for a given math environment I can tokenize any contained expressions first, then let micromark-extension-math do it's own parsing? I'm not familiar enough with the ecosystem to know if this is even possible without forking micromark-extension-math so would be very grateful if someone can point me in the right direction, here's what I have so far:
Thanks a million! Matt |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
Heya!
I’m not sure what you did, but this is very close to what
It would help a lot here if I know what your actual input is, and your expected output. What is the syntax of your variables? What are the limitations? Is it JavaScript? Can they include complete programs? Statements? Are they just identifiers?
No, it is not possible to add custom parsing to |
Beta Was this translation helpful? Give feedback.
Heya!
I’m not sure what you did, but this is very close to what
remark-math
already exposes, plus a small tree transform afterwards? Is that what you’re doing (and if not, why are you doing more complicated things?)It would help a lot here if I know what your actual input is, and your expected output. What is the syntax of your variables? What are the limitations? Is it JavaScript? Can they include complete programs? Statements? Are…