Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fix/chore) safer wrapper for IIFE grammar plugins
Resolves #3363. The `rollup` output format changed out from underneath us which means that our simple text processing of IIFE output broke and we were outputting invalid JS for our CDN language builds. Now we wrap the IIFE inside our own second IIFE and then perform `hljs.registerLanguage` there. This should be more resilient to future subtle changes in the output.
- Loading branch information