[FEATURE] Embed Videos
It would be cool to be able to embed videos. A first Step could be providing support for youtube (I assume thats the most popular one), in further steps other platforms, like Vimeo for example.
For realizing this, there are two approaches I believe:
- Write the Plugin ourselves
- Use this existing one
You can configure the underlying markdown parser inside svelte.config.js like so:
kitDocsPlugin({
markdown: {
configureParser: async (parser) => {
// ...
}
}
}),
Mentioning that just so you know you can configure it and add custom plugins if desired. I also want to note that in KitDocs you can create custom Svelte components that are global. This means you can place a YouTube component at src/kit-docs/Youtube.svelte and use it in markdown like so:
:::youtube id="..."" :::
But of course this isn't quite as elegant as simply writing @[youtube](...). Not sure, is this something we should support out of the box? I'd guess probably. I think that markdown video plugin is pretty dope.