mirror of
https://github.com/catppuccin/python.git
synced 2026-03-16 00:02:01 +08:00
fix(scripts/build-gh-pages): add code selector for pygments styles (#69)
This commit is contained in:
parent
7ca0dd09c1
commit
6699255f59
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user