Markdown extension to allow media embedding using the oEmbed standard.
Find a file
2023-08-08 15:58:56 +02:00
mdx_oembed Use f-strings, add missing classes. 2023-08-08 15:58:56 +02:00
.gitignore Release 0.2.0 2016-02-16 05:04:24 -06:00
.travis.yml Release 0.2.0 2016-02-16 05:04:24 -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 version bump for 0.2.1 and wheel setup 2016-04-22 00:17:51 -05:00
setup.cfg version bump for 0.2.1 and wheel setup 2016-04-22 00:17:51 -05:00
setup.py version bump for 0.2.1 and wheel setup 2016-04-22 00:17:51 -05:00
tests.py Slideshare test case 2016-04-14 14:35:22 +05:30

Python Markdown oEmbed

Build Status

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.

Changelog

0.2.1

  • add Slideshare endpoint (thanks to anantshri)

0.2.0

  • backwards incompatible changes
    • allows arbitrary endpoints (commit)
    • works with modern Markdown (>=2.6)
    • dropped support for python 2.6
  • added support python 3.x