Skip to content

Commit

Permalink
code block for rst.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Feb 11, 2012
1 parent f7981cc commit 4f6a2c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/plugin/mod_rst.py
@@ -1,4 +1,6 @@
from docutils.core import publish_parts
from sphinx.directives.other import *
from sphinx.directives.code import *

def preview(s):
return publish_parts(s, writer_name='html')['body']
Expand Down

0 comments on commit 4f6a2c7

Please sign in to comment.