The library uses internally refractor for matching with Prism languages and alias.
If the code block has a language alias not supported by refractor, then it throws an error:
Unknown language: `sh` is not registered Register alias support
Since an alias is a very common behavior (for example, on GitHub highlight, sh is an alias for bash), could be useful support registering some alias in order to avoid throwing a global exception.
For doing that, first, need to be supported on refractor level and then be possible to pass the customization throw the module API.
Hello,
The library uses internally refractor for matching with Prism languages and alias.
If the code block has a language alias not supported by refractor, then it throws an error:
Since an alias is a very common behavior (for example, on GitHub highlight,
sh
is an alias forbash
), could be useful support registering some alias in order to avoid throwing a global exception.For doing that, first, need to be supported on refractor level and then be possible to pass the customization throw the module API.
Related: https://github.com/wooorm/refractor/issues/20