Cursor keeps jumping back to start when using prismjs as highlighter.
chaoticryptidz opened this issue · 1 comments
chaoticryptidz commented
https://purringchaos.github.io/codejar-glitchy-repro/
https://github.com/purringChaos/codejar-glitchy-repro
it only seems to do it when codejar is imported after prism.
chaoticryptidz commented
found the issue, it trys to pass Position as a boolean to the second argument of highlightElement.
Therefore your demo site has wrong code and instead needs to use (e) => highlightElement(e)
and not just highlightElement