Closed dancerphil closed 3 years ago
We are using refractor in web worker.
It turns out that code-block in markdown will fail since we don't have document in web worker.
code-block
document
It could be better if we have a document check.
Related code: https://github.com/wooorm/refractor/blob/main/lang/markdown.js#L367
Version: refractor@3.4.0 (I think also in 4.1.0)
I don’t understand the question.
The code you link to never runs, because Prism.plugins.autoloader shouldn’t be true.
Prism.plugins.autoloader
Please spend time framing your question or post reproduction code to show that it’s a bug
We are using refractor in web worker.
It turns out that
code-block
in markdown will fail since we don't havedocument
in web worker.It could be better if we have a
document
check.Related code: https://github.com/wooorm/refractor/blob/main/lang/markdown.js#L367
Version: refractor@3.4.0 (I think also in 4.1.0)