Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 356b40d

Browse files
committedJul 9, 2016
Use literal_block for Nikola code blocks
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 77a998d commit 356b40d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nikola/plugins/compile/rest/listing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def run(self):
110110

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.