-
What code syntax highlight extension would you recommend? I tried the https://www.npmjs.com/package/marked-highlight but it's not working(maybe it needs to be injected directly into marked and not as an extension, which does not work for me). Is there anything else available? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Why is it not working? That is the one used in marked docs. |
Beta Was this translation helpful? Give feedback.
-
Nevermind, I tried marked-shiki but it did not work either. I guess they both require a special way to be initialized and not used as mere extensions, which does not work for my setup. I will probably move to marked-it instead. |
Beta Was this translation helpful? Give feedback.
No you can use
marked.use
to use extensions after instantiation.You can also add multiple extensions to new Marked