fix(scripts/build-gh-pages): add code selector for pygments styles (#69)

This commit is contained in:
uncenter 2024-08-15 22:00:38 +02:00 committed by GitHub
parent 7ca0dd09c1
commit 6699255f59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,7 +54,7 @@ def postprocess_css(content: str, important: bool) -> str:
def flavor_css(flavor: str) -> str:
style = PYGMENTS_STYLES[flavor]
formatter = HtmlFormatter(style=style)
return formatter.get_style_defs("pre")
return formatter.get_style_defs(["pre", "code"])
def variable_css() -> str: