pi0 / nuxt-shiki

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

<Shiki/> component doesn't accept "text" | "plain" | "txt" as a valid value for the `lang` props #42

Open remiconnesson opened 1 month ago

remiconnesson commented 1 month ago

Per https://shiki.matsu.io/languages#plain-text it's possible to pass values that are not a bundled language keys "text" | "plain" | "txt" but the following prop declaration doesn't accept it https://github.com/pi0/nuxt-shiki/blob/494e84e2a50cafc1a98e06ae2c1c6f4c3c90e10a/src/runtime/component.ts#L10


PS: The issue also likely occurs with ANSI