1
0
Fork 0
forked from github/pelican

Merge pull request #710 from ikalnitsky/code-directive

Fix bug with docutils' code directive.
This commit is contained in:
Bruno Binet 2013-02-08 23:08:01 -08:00
commit 06899aa826

View file

@ -110,7 +110,8 @@ class RstReader(Reader):
return output
def _get_publisher(self, source_path):
extra_params = {'initial_header_level': '2'}
extra_params = {'initial_header_level': '2',
'syntax_highlight': 'short'}
pub = docutils.core.Publisher(
destination_class=docutils.io.StringOutput)
pub.set_components('standalone', 'restructuredtext', 'html')