Currently, when using Notation expressions such as // [!code highlight] in Shiki, and you want to render this directly to markdown code, the escape notation // [\!code highlight] is used.
However, this expression doesn’t normalize, // [\!code highlight] is output as is.
Therefore, shiki's docs has created its own transformer to solve this problem.
At this time, why not export it as a @shiki/transformers function, or provide built-in support for it?
Clear and concise description of the problem
Hi there, thank you for this wonderful project!
Currently, when using Notation expressions such as
// [!code highlight]
in Shiki, and you want to render this directly to markdown code, the escape notation// [\!code highlight]
is used. However, this expression doesn’t normalize,// [\!code highlight]
is output as is.Suggested solution
https://github.com/shikijs/shiki/blob/a397882fa19d267917c0f8cd59b7717118f4b89f/docs/.vitepress/config.ts#L123-L128
Alternative
Therefore, shiki's docs has created its own transformer to solve this problem. At this time, why not export it as a
@shiki/transformers
function, or provide built-in support for it?Additional context
No response
Validations
Contributes