2012-11-13 21:28:10 +00:00
|
|
|
# Python Markdown oEmbed
|
|
|
|
|
|
2016-02-16 11:04:24 +00:00
|
|
|
[](https://travis-ci.org/rennat/python-markdown-oembed)
|
|
|
|
|
|
2012-11-13 21:28:10 +00:00
|
|
|
Markdown extension to allow media embedding using the oEmbed standard.
|
|
|
|
|
|
2012-11-13 21:37:35 +00:00
|
|
|
## Installation
|
2012-11-13 21:28:10 +00:00
|
|
|
|
2012-11-13 21:37:35 +00:00
|
|
|
pip install python-markdown-oembed
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
>>> import markdown
|
|
|
|
|
>>> md = markdown.Markdown(extensions=['oembed'])
|
|
|
|
|
>>> md.convert('')
|
|
|
|
|
u'<iframe width="459" height="344" src="http://www.youtube.com/embed/zqnh_YJBvOI?fs=1&feature=oembed" frameborder="0" allowfullscreen></iframe>'
|
|
|
|
|
|
|
|
|
|
## Links
|
|
|
|
|
|
|
|
|
|
- [python-markdown-oembed](https://github.com/rennat/python-markdown-oembed)
|
2012-11-13 21:28:10 +00:00
|
|
|
- [Markdown](http://daringfireball.net/projects/markdown/)
|
|
|
|
|
- [oEmbed](http://www.oembed.com/)
|
|
|
|
|
- [python-oembed](https://github.com/abarmat/python-oembed)
|
2012-11-13 22:33:36 +00:00
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
|
|
A Public Domain work. Do as you wish.
|
2016-02-16 11:04:24 +00:00
|
|
|
|
|
|
|
|
## Changelog
|
|
|
|
|
|
2016-04-22 05:17:51 +00:00
|
|
|
### 0.2.1
|
|
|
|
|
|
|
|
|
|
- add Slideshare endpoint (thanks to [anantshri](https://github.com/anantshri))
|
|
|
|
|
|
2016-02-16 11:04:24 +00:00
|
|
|
### 0.2.0
|
|
|
|
|
|
|
|
|
|
- backwards incompatible changes
|
|
|
|
|
- allows arbitrary endpoints ([commit](https://github.com/Wenzil/python-markdown-oembed/commit/1e89de9db5e63677e071c36503e2499bbe0792da))
|
|
|
|
|
- works with modern Markdown (>=2.6)
|
|
|
|
|
- dropped support for python 2.6
|
|
|
|
|
- added support python 3.x
|