Skip to content

Commit b4e9523

Browse files
committed
Wrap highlighted code with <code> in bolt-pages
1 parent 03945c2 commit b4e9523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt-pages/bolt/pages/markdown.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def block_code(self, code, info=None):
2020

2121
if info:
2222
lexer = get_lexer_by_name(info, stripall=True)
23-
formatter = html.HtmlFormatter()
23+
formatter = html.HtmlFormatter(wrapcode=True)
2424
return highlight(code, lexer, formatter)
2525

2626
return "<pre><code>" + mistune.escape(code) + "</code></pre>"

0 commit comments

Comments
 (0)