feat(css): target pre[lang] in addition to pre

This commit is contained in:
backwardspy 2024-03-17 22:54:41 +00:00
parent 6c746c1ca7
commit a8eb6b994b
No known key found for this signature in database

View File

@ -38,7 +38,7 @@ def postprocess_css(content: str) -> 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", "pre[lang]"])
def variable_css() -> str: