Skip to content

Commit

Permalink
Also do not include classes for other languages in pygments
Browse files Browse the repository at this point in the history
  • Loading branch information
epoz committed Jan 30, 2024
1 parent d7cc43a commit 30b4276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/schpiel.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _highlight(self, tokens, idx, options, env):
if lang == "sparql":
formatter = CustomHtmlFormatter(url=url, noclasses=True)
else:
formatter = HtmlFormatter()
formatter = HtmlFormatter(noclasses=True)
return highlight(code, lexer, formatter)

md.add_render_rule("fence", _highlight)
Expand Down

0 comments on commit 30b4276

Please sign in to comment.