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
- Host: GitHub
- URL: https://github.com/tylertemp/md-video
- Owner: TylerTemp
- License: mit
- Created: 2016-02-04T16:32:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-22T17:31:44.000Z (almost 10 years ago)
- Last Synced: 2024-12-31T03:26:24.627Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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]

[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