wooorm / refractor

Lightweight, robust, elegant virtual syntax highlighting using Prism

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect global in jsdom environment

rexxars opened this issue · comments

After #37 was merged I appear to have some issues where prismjs thinks the global is one thing, while refractor thinks it's a different thing. This results in Prism.manual not being set, which makes prism attach events to the DOMReady events and such.

I'm not quite sure what the right solution is - I'll see if I can come up with a reproducible test case.

commented

Hmm annoying, sorry, thanks for investigating!

/cc @xiaoxiangmoe on this

@rexxars Can you give me a minimal demo of this?

commented

Friendly ping @rexxars!

commented

Closing this for now as not actionable. If this is still an issue and can be solved here, I’d appreciate a reproduction!