You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.
iA-Writer-Style: https://www.youtube.com/watch?v=KOxbO0EI4MA (the URL is the only content of a paragraph)
The embed node will simply take the previous nodes as children, so that normal HTML processing just skips over it.
In the second step, we add a default handler to the #53 VDOM Util, which finds embed nodes in MDAST and outputs the appropriate HTML to embed the referenced content. The handler uses a service (with configurable URL) for generating appropriate HTML representations.
The text was updated successfully, but these errors were encountered:
In order to support embeds (OEmbed and Twitter cards, etc.), I suggest following approach:
In the first step, detect embeds and create
embed
nodes in the MDAST.embeds
can take multiple forms:`video: https://www.youtube.com/embed/2Xc9gXyf2G4`
[![Audi R8](http://img.youtube.com/vi/KOxbO0EI4MA/0.jpg)](https://www.youtube.com/watch?v=KOxbO0EI4MA "Audi R8")
![](https://www.youtube.com/watch?v=KOxbO0EI4MA)
https://www.youtube.com/watch?v=KOxbO0EI4MA
(the URL is the only content of a paragraph)The
embed
node will simply take the previous nodes aschildren
, so that normal HTML processing just skips over it.In the second step, we add a default handler to the #53 VDOM Util, which finds
embed
nodes in MDAST and outputs the appropriate HTML to embed the referenced content. The handler uses a service (with configurable URL) for generating appropriate HTML representations.The text was updated successfully, but these errors were encountered: