Parse mardown from string inside remark plugin #725
-
Hello, pretty simple setup i've got. I'm using remark directives as placeholders for some additional markdown that is inserted via a remarkPlugin. This code is pretty simple:
And this works great. HOWEVER, the mdast-util-from-markdown is not going to be configured the with the same plugins as the remark parse that itself invokes my own myDerectives plugin. This becomes a problem if I want my substituted text to also support language extensions like remark-gfm, remark-derictives or anything like that, as i'd have to configure mdast-util-from-markdown to also use those extensions but I can't know which plugins someone uses from within my plugin itself. So my question. Can I get a reference to the ReMark object itself from a plugin, so that I can parse additional markdown like this, kind of 'recursively' if you will. Ex of what it looks like in my mind:
The new function would be GetCurrentPipeline() which just gives me the jiraConverter object that itself invoked myDerective. Is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Nvm I figured it out. Cool :)
|
Beta Was this translation helpful? Give feedback.
Nvm I figured it out. Cool :)