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
Both line-highlight and show-language are plugins that rely on the DOM being present (although they would not need to do that). They are programmed to not do anything if there is no DOM (see line-highlight.js#3 and prism-show-language.js#3). There is no DOM when rendering markdown with markdown-it because markdown-it, like any Markdown parser, operates on text tokens. So, unfortunately, this is nothing we can fix in this plugin. The Prism plugins need to be re-written in order to make them work.
In this sense, this bug is a duplicate of #1, for which there already is a warning in the README:
Please note that some prism plugins (notably line-numbers) rely on the DOM being present and can thus not be used with this package (see #1).
Thus, I am going to close this bug. Sorry that we cannot be more helpful!
Following is the input js file:
output file is following:
It looks like the two plugins do not has any effects.
The text was updated successfully, but these errors were encountered: