Markdown extension to allow media embedding using the oEmbed standard.
Find a file
J. Tanner Netterville 798c9850e6 improve portability
2012-11-14 12:15:41 -06:00
mdx_oembed improve portability 2012-11-14 12:15:41 -06:00
.gitignore updated readme and setup.py 2012-11-13 15:37:35 -06:00
LICENSE added license and manifest template, bumped alpha version 2012-11-13 16:55:47 -06:00
MANIFEST.in added license and manifest template, bumped alpha version 2012-11-13 16:55:47 -06:00
README.markdown updated setup.py and added manifest for readme and license file 2012-11-13 16:33:36 -06:00
setup.py added license and manifest template, bumped alpha version 2012-11-13 16:55:47 -06:00
tests.py allow configuring which endpoints to allow 2012-11-13 17:28:04 -06:00

Python Markdown oEmbed

Markdown extension to allow media embedding using the oEmbed standard.

Installation

pip install python-markdown-oembed

Usage

>>> import markdown
>>> md = markdown.Markdown(extensions=['oembed'])
>>> md.convert('![video](http://www.youtube.com/watch?v=zqnh_YJBvOI)')
u'<iframe width="459" height="344" src="http://www.youtube.com/embed/zqnh_YJBvOI?fs=1&feature=oembed" frameborder="0" allowfullscreen></iframe>'

License

A Public Domain work. Do as you wish.