pymarkdown-video
Extension for python-markdown, that will convert markdown picture that are vide
file into the HTML5 video tag instead of the img tag.
Example

will be rendered as
<p>
<video alt="Big Buck Bunny" controls="controls" title="Vidéo de Big Buck Bunny">
Your browser does not handle the video <a href="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4">http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4</a>
<source src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" type="video/mp4"></source>
</video>
</p>
Usage
pip install pymarkdown-video
from markdown import Markdown
text = ''
md = Markdown(extensions=['pymarkdown-video'])
print(md.convert(text))
You can also use it with MkDocs.
After installing the package with pip, in your mkdocs.yml, add:
markdown_extensions:
- pymarkdown-video
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pymarkdown-video-1.1.0.tar.gz.
File metadata
- Download URL: pymarkdown-video-1.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc14a485407ef8fd22f76d789066d2e9cf79c74d05b7f6831d6c102b10a39039
|
|
| MD5 |
3a94d855994dc7ffb6b4b7f55fa2a22f
|
|
| BLAKE2b-256 |
d9ca0b498cd32568482719de2efe3a469e8db4477aa64d191a5d16d1ed7e9039
|