Skip to content

remak-iframes #1290

Answered by wooorm
Christonn93 asked this question in Q&A
Feb 27, 2024 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

If you are looking for a generic component format, you are looking for remark-directive.
But you still need to handle those components.

Alternatively, use links: [Title](https://asdasdasd "is:video"), then with a transform plugin, you can look for links that have a title of is:video, and transform them. This one is pretty similar to your goal: https://github.com/rehypejs/rehype-picture.

MDsvelX used to be very outdated. Not sure if that’s still the case. You can also use MDX itself with Svelte. MDX already has a component syntax: <Video id="asdasdasd" />

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@wooorm
Comment options

Answer selected by Christonn93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants