What can remark actually do / how to display videos in markdown? #557
-
I'm making a NuxtJS application using This repos main readme says:
I mean, I have no idea what this means :D I've got a plugin for fenced divs, remark-containers, already up and running. Great, so there's probably a plugin for video, right? But the plugin directory doesn't show any plugin for videos. So video display must be baked in already, right? But I find no information on how to do this. There is a huuuuge discussion spanning over several years about CommonMark and video display. But it is still ongoing and I guess therefore not implemented yet? The CommonMark website itself also doesn't seem to offer documentation or examples on what CommonMark actually can do. The Specs website is literally beyond my understanding. You see: there is so much information and clues to follow that kinda lead nowhere for a newbie to all of this. TL;DR Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Sounds like: https://github.com/agentofuser/remark-oembed (which is in the list of plugins https://github.com/remarkjs/remark/blob/main/doc/plugins.md)
It is not a part of markdown, commonmark, or gfm.
Oh? |
Beta Was this translation helpful? Give feedback.
-
Holy moly. That was a fast reply. I was still editing my messy english :D Yeah, technically you're right.
the oembed plugin looks promising. And if I took the time to read all the plugins, I could've find it. But I argue most devs do The reason I didn't look for "embed" is that I also want to display self hosted video files via Again: thanks for the quick reply |
Beta Was this translation helpful? Give feedback.
Sounds like: https://github.com/agentofuser/remark-oembed (which is in the list of plugins https://github.com/remarkjs/remark/blob/main/doc/plugins.md)
It is not a part of markdown, commonmark, or gfm.
It can be added through a plugin/extension, but is not a part of the language.
directives https://github.com/remarkjs/remark-directive and JSX https://github.com/mdx-js/mdx are two common ways of extending the content types in markdown.