Josh Goebel
Josh Goebel
@RunDevelopment And it works. :-) About 30 lines of code _without_ a proper style name mapper. 2-3 line patch to HLJS itself to allow grammars to provider their own tokenizers....
See also #3620. Laying out all the pieces for anyone who wants to play with this.
I guess i was imagining perhaps a "simplest thing possible" API like: ```js importToHLJS(Prism, hljs) ``` Where that just asked Prism for the "supported/loaded/installed" languages and then loop, wrap them,...
@RunDevelopment If I wanted to package this as a small stand-alone ESM module, would I just `import Prism` and let people's bundlers/client-side figure it out or would it be simpler...
> getHLJSPrismInstance() I'm not sure this would be a thing (or that I see the need?) If someone wanted a single prism instance they should just create one and always...
I'm not sure. I'm hopeful someone comes along who's interested in the capability. I'm not really looking to maintain further pieces of HLJS outside of core... so right now we'd...
I'd suggest perhaps a `format: [zip,javascript]` choice perhaps?
Some indication that "Docs" and "GitHub" were going to jump you to another site might be nice... I always frown when I see links in "sitewide navigation" that link to...
Does VS Code use us directly or just in plugins? If we're not in the default install I think that's a little deceptive and we should remove them from the...
> This looks really nice ### Yes, it looks amazing. I totally should have led with that before jumping into my [overall] minor nitpicks... I'd be fine launching it just...