swyxio/swyxkit

Adding SvelteKit Embed

swyxio opened this issue · 2 comments

In #40 I added Twitter and Youtube embeds, but obviously there are lots more things to add.

@spences10 has been working on Sveltekit embed: https://www.npmjs.com/package/sveltekit-embed?activeTab=readme

However this does the normal MDSvex thing of directly importing components, which is not really ergonomic for a Github Issues CMS (#10) driven thing like I do on this blog. So I'm testing this:

{% embed hi %}

Temporarily abandoning it because i couldnt figure out how to get it to work with mdsvex.compile

image

generates a <script> tag, which i cant use @html to just throw into a page like regular mdsvex output.

image

@swyxio Did you ever figure this out? Do you think this problem is related to mine here:
spences10/sveltekit-embed#511