]> git.sur5r.net Git - i3/i3.github.io/blob - _filters/rst_template.py
re-add /blog + feed (had quite a few subscribers)
[i3/i3.github.io] / _filters / rst_template.py
1 import docutils.core
2
3 config = {
4     'name': "reStructuredText",
5     'description': "Renders reStructuredText formatted text to HTML",
6     'aliases': ['rst']
7     }
8
9
10 def run(content):
11     return docutils.core.publish_parts(content, writer_name='html')['html_body']