Skip to content
Permalink
Browse files

Use literal_block for Nikola code blocks

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 9, 2016
1 parent 77a998d commit 356b40d18e2963eff0ab1091b65b41947fe16ced
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/plugins/compile/rest/listing.py
@@ -110,7 +110,7 @@ def run(self):

formatter = utils.NikolaPygmentsHTML(anchor_ref=anchor_ref, classes=classes, linenos=linenos, linenostart=linenostart)
out = pygments.highlight(code, lexer, formatter)
node = nodes.raw('', out, format='html')
node = nodes.literal_block(out, out)

self.add_name(node)
# if called from "include", set the source

0 comments on commit 356b40d

Please sign in to comment.
You can’t perform that action at this time.