pi0 / nuxt-shiki

🎨 Nuxt + Shiki syntax highlighter
79 stars 2 forks source link

support `Shiki` transformers #4

Closed cpreston321 closed 8 months ago

cpreston321 commented 9 months ago

Transformers

pi0 commented 8 months ago

shiki.highlight (API in nuxt-shiki) allows transformers to be passed (via programmatic also component) in 0.2+

I think it should be enough to unblock any higher order usages of this module to include transformers.

Additionally we could support a plugin hook to allow extending default transforms. I think specially since this module could be used by multiple modules, global mutations are inheritingly a dangerous territory to support (a plugin hook that adds transform for all highlighters)