Video extension for python-markdown
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
mdx_video.py
setup.py
tests.py

README.md

Usage

import markdown

text = '...'
# see http://pythonhosted.org//Markdown/reference.html#extension_configs for passing parameters
html = markdown.markdown(text, extensions=['video'])
# or
from mdx_video import VideoExtension
html = markdown.markdown(text, extensions=[VideoExtension(**params)])
# or
md = markdown.Markdown()
md.registerExtension(VideoExtension(**params))

Support

The following video providers are supported:

  • YouTube
  • Vimeo
  • Yahoo Video
  • Dailymotion
  • Metacafe
  • Veoh

Contribute

Missed some provider? Don't be shy, fork it and send a pull request. Or you can open an issue too!