2012-11-13 21:28:10 +00:00
|
|
|
# Python Markdown oEmbed
|
|
|
|
|
|
|
|
|
|
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.
|