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
Thank you for the comprehensive bug report @meteorlxy!
I made a workaround for now. However, the underlying issue (that the wrap hook function is added multiple times) won't be as easy to solve, so this issue will likely be open for a while.
Information:
Description
The reload logic is described here:
prism/dependencies.js
Lines 383 to 388 in 4e7b2a8
So the
prism-markdown
is possible to be reloaded multiple times, and thewrap
hook will be added multiple times, too:prism/components/prism-markdown.js
Line 320 in 4e7b2a8
For example:
markdown
andjavascript
jsdoc
jsdoc
modifiesjavascript
javascript
modifiesmarkup
markup
is depended bymarkdown
javascript
,markup
andmarkdown
will also be reloadedThen, syntax highlighting inside markdown code block will be triggered multiple times.
Example
wrap
hooks are:The text was updated successfully, but these errors were encountered: