mirror of
https://github.com/Hopiu/python-markdown-oembed.git
synced 2026-03-17 06:20:24 +00:00
- Merged improvements from Wenzil's fork. Thanks Wenzil! - Update for new version of Markdown breaks backwards compatability. - Dropped test support for Python 2.6 - Fixed test suite (including Travis CI config)
37 lines
1.2 KiB
Markdown
37 lines
1.2 KiB
Markdown
# Python Markdown oEmbed
|
|
|
|
[](https://travis-ci.org/rennat/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('')
|
|
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)
|
|
- [Markdown](http://daringfireball.net/projects/markdown/)
|
|
- [oEmbed](http://www.oembed.com/)
|
|
- [python-oembed](https://github.com/abarmat/python-oembed)
|
|
|
|
## License
|
|
|
|
A Public Domain work. Do as you wish.
|
|
|
|
## Changelog
|
|
|
|
### 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
|