Markdown extension to allow media embedding using the oEmbed standard.
Find a file
Sami Turcotte 639d4a6dec Change div wrapper to a figure wrapper
The reasoning is that the translation of Markdown into HTML should be as
concise as possible. The semantics of the figure element seem to fit the
embedded nature of OEmbed content moreso than the div element which is
quite generic.
2015-04-20 00:42:50 -04:00
mdx_oembed Change div wrapper to a figure wrapper 2015-04-20 00:42:50 -04: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 version bump 2015-04-04 03:34:33 -04:00
tests.py Fixing tests, still needs work on auto protocol 2014-07-22 17:12:30 -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.