Closed atinux closed 9 months ago
Here is how I did in mdc module:
I don't mind creating stub modules for alias to be directly imported - but that might not work for every alias as not all aliases a valid ansi filenames - I will try
https://github.com/shikijs/shiki/pull/596 get merged - now this should just work if you upgrade shiki to 1.1.6
That was fast thank you @antfu !
Example:
It would be nice to detect that it is an alias and load the corresponding language:
powershell
(See https://github.com/shikijs/shiki/blob/b9c0fb5fcc0c86d0e994ac0a51d990a9270a73f3/packages/shiki/src/assets/langs-bundle-full.ts#L834-L841)Any hint on how to do this @antfu ?