-
Notifications
You must be signed in to change notification settings - Fork 857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YouTube video markdown #226
Comments
Markdown does not support YouTube anything but it does support HTML. Just paste the YouTube embed code directly into your document. |
Not sure if I'm following you exactly. My challenge is: my document source is a Google Document. Google Documents do not support embeded videos so my solution is to provide the video via markdown code and then parse it on the client. This is working great, I'm just not sure how to add a different markdown output than what is currently being produced: an image that links to youtube video. |
I have no idea how to solve your weird google docs thing. But in terms of markdown, markdown supports HTML :) |
Lol. Ok forget Google Docs. The real question here is: how can I generate a custom markdown result? |
You would have to write your own dialect |
Lol, how? Can you offer some tips? |
|
I must admit the existing dialects are not the easiest to decipher, a section in the documentation about this would go a long way. |
+1 |
Maybe a simpler example, this a dialect my co-worker made. Writing dialects might not be very straightforward, but it’s easier to do than in most Markdown implementations: https://github.com/aleray/markdown-js/blob/9373b6b4b435aff47ed533f1cf111b9c884d430a/src/dialects/aa.js Your linked image solution seems a pretty efficient though :) |
I'm using this in tiddlywiki plugin and I can't achieve to embed vimeo videos. It's supposed that markdown allow html embed, but this library does not:
Related to fully support HTML |
@deadlyicon markdown does support HTML but markdown-js escape HTML tags! |
This works great to produce a link to a YouTube video, but if I want to produce YouTubes embed tag into my html, so basically an iFrame widget, how would I go about doing this? Do I provide a different dialect or function somehow?
Produces quite nicely:
The text was updated successfully, but these errors were encountered: