Skip to content

Video extension for python-markdown

Notifications You must be signed in to change notification settings

dtantsur/mdx-video

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note on the fork

The original project seems abandoned, the fork at dtantsur/mdx-video adds support for python-markdown 3+ and Python 3.12+.

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!

About

Video extension for python-markdown

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%