Closed dancerphil closed 5 years ago
Seems to be related to placeholders:
Not sure if we can fix the after-tokenize
phase.
I tracked this down to css-extras
:
And I can reproduce it with normal Prism as well:
I’ll raise an issue there!
I raised https://github.com/PrismJS/prism/issues/2008. As this is an issue there, I don’t think it’s needed to keep it open here. Follow their issue for updates, and when there’s a fix released, it’ll be pulled into refractor!
The result of refractor.highlight(...) is unexpected.
see demo: https://codesandbox.io/s/unexpected-php-highlight-9x2u4