Template filters for the creole parser python-creole.
Usage example:
from flaskext.creole import Creole
Creole(app)
Now in your templates you can use the filters:
{{ article.body|creole2html }}
Or if you want to try it backwards, yes, markup from html:
{{ article.html_body|html2creole }}
Why use python-creole, not creoleparser?
- creoleparser depends on genshi
- creoleparser is only one-way markup -> html
copyright: |
|
---|---|
license: | MIT, see LICENSE for more details. |