You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not good at English and use machine translation.
First of all, thank you for creating such a useful library.
Let me ask one question.
Are the extensions listed on the Marked.js site available for this library?
I'm currently using the lexer to parse the markdown string and generate tokens which can then be rendered as different components. It seems like the extensions are only applied when using marked.parse() from my few tests :/
I'll look into implementing custom extensions or parsers though since I've already run into some limitations.
For what it's worth @datsukan and @mlaursen I got extensions to work by passing in the marked.defaults after calling marked.use. You can probably also just set the options for extensions yourself but marked.use appeared to make modifications.
marked.use(myext);functionMyComponent({ text }){return<Markdownoptions={marked.defaults}markdown={text}/>;}
I am not good at English and use machine translation.
First of all, thank you for creating such a useful library.
Let me ask one question.
Are the extensions listed on the Marked.js site available for this library?
https://marked.js.org/using_pro#extensions
The text was updated successfully, but these errors were encountered: