python-markdown-oembed/README.markdown

26 lines
760 B
Markdown
Raw Normal View History

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('![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>'
## 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)
## License
A Public Domain work. Do as you wish.