remak-iframes #1290
-
Just wondering if this feature will be working in the near feature? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
What feature? What doesn’t work? Can you please provide more info? |
Beta Was this translation helpful? Give feedback.
-
Welcome @Christonn93! 👋 They have a preview version which works with the latest version of |
Beta Was this translation helpful? Give feedback.
-
I'm talking about this What im trying to do is to have a way to just add the link to markdown and have it change into a iframe. But I will have one more go at the iframe that i linked to, maybe i need to understand it better. Thanks anyway :) PS: The project im working on is a svelte project. And its using MDsvelX. |
Beta Was this translation helpful? Give feedback.
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 atitle
ofis: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" />