forked from github/pelican
Merge pull request #710 from ikalnitsky/code-directive
Fix bug with docutils' code directive.
This commit is contained in:
commit
06899aa826
1 changed files with 2 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue