Skip to content

Commit

Permalink
Use the reference HtmlFormatter class defined on PygmentsBridge. (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke authored May 15, 2023
1 parent 6bff419 commit dd85574
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/furo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ def get_pygments_stylesheet() -> str:
There is no way to tell Sphinx how the theme handles dark mode; at this time.
"""
light_formatter = HtmlFormatter(style=_KNOWN_STYLES_IN_USE["light"])
dark_formatter = HtmlFormatter(style=_KNOWN_STYLES_IN_USE["dark"])
light_formatter = PygmentsBridge.html_formatter(style=_KNOWN_STYLES_IN_USE["light"])
dark_formatter = PygmentsBridge.html_formatter(style=_KNOWN_STYLES_IN_USE["dark"])

lines: List[str] = []

Expand Down

0 comments on commit dd85574

Please sign in to comment.