Fix markdown code blocks
Committed 9a9482
--- a/web/markdown/__init__.py
+++ b/web/markdown/__init__.py
lexer = pygments.lexers.get_lexer_by_name(language)
lexer.add_filter("codetagify")
formatter = pygments.formatters.HtmlFormatter()
- code = pygments.highlight(text, lexer, formatter)
+ code = pygments.highlight(code, lexer, formatter)
html = lxml.html.fromstring(code)
else:
html = E.PRE(text.strip())