An open API service indexing awesome lists of open source software.

https://github.com/tylertemp/md-video

video block(tag) extension for Python-Markdown
https://github.com/tylertemp/md-video

Last synced: 11 months ago
JSON representation

video block(tag) extension for Python-Markdown

Awesome Lists containing this project

README

          

md-video
========

video block(tag) extension for Python-Markdown

Install
-------

```bash
pip install -U git+git://github.com/TylerTemp/md-video.git
```

Usage
-----

```python
import markdown
import md_video

md = """
[Video: Title of the Video]
![poster](http://link.to.poster/link.png)
[download.mp4](http://link.to.video/file.mp4)
[download.ogg](http://link.to.video/file.ogv)
[download.webm](http://link.to.video/file.webm)
[subtitle.en-US.vtt](http://link.to.subtitle/en_us.vtt "English")
[subtitle.zh.vtt](http://link.to.subtitle/zh.vtt "Chinese")
"""

html = markdown.markdown(md, extensions=[makeExtension()])
print(html)
```

will give you the result

```html

Your browser does not support thevideoelement









```

Note `poster` and `subtitle.` should not be changed

`poster` and `subtitle` is optional