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
Release files for pymarkdown-video 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pymarkdown-video-1.1.0.tar.gz | 3.2 kB | Details |
Release files / pymarkdown-video-1.1.0.tar.gz
| Download URL | pymarkdown-video-1.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc14a485407ef8fd22f76d789066d2e9cf79c74d05b7f6831d6c102b10a39039
|
|
BLAKE2b-256 checksum How to use checksums |
d9ca0b498cd32568482719de2efe3a469e8db4477aa64d191a5d16d1ed7e9039
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.14
|