Unexpected php highlight
dancerphil opened this issue · comments
Cong Zhang commented
The result of refractor.highlight(...) is unexpected.
see demo: https://codesandbox.io/s/unexpected-php-highlight-9x2u4
Titus commented
Seems to be related to placeholders:
Lines 121 to 129 in 48d2d90
Not sure if we can fix the after-tokenize
phase.
Titus commented
I tracked this down to css-extras
:
Line 79 in 32c65ff
And I can reproduce it with normal Prism as well:
I’ll raise an issue there!
Titus commented
I raised PrismJS/prism#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!