Markdown extension to allow media embedding using the oEmbed standard.
Find a file
J. Tanner Netterville 0b2b234fb5 updated tests
2013-10-21 17:37:56 -05: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 bump version 2012-11-14 14:05:40 -06:00
tests.py updated tests 2013-10-21 17:37:56 -05: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.