Closed segevfiner closed 2 years ago
What kind of thing is this used for? Would you want to pass it in to the parse
method, or the MarkdownParser
constructor?
I know what that argument is, what I was asking is what you are using it for.
To pass and receive environmental data from some custom markdown-it plugin.
Added in attached patch.
markdown-it
can receive anenv
object in its parse call that can be used to retrieve and pass in some information into the parser for some plugins and token types. It would be nice to be able to pass it in.