Skip to content

Commit 8bce6ae

Browse files
committed
🔧 Minor fix for sphinx 8.2 compat
closes #1010
1 parent 0437558 commit 8bce6ae

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

myst_parser/mdit_to_docutils/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,8 +716,9 @@ def render_fence(self, token: SyntaxTreeNode) -> None:
716716
if not name and self.sphinx_env is not None:
717717
# use the current highlight setting, via the ``highlight`` directive,
718718
# or ``highlight_language`` configuration.
719-
name = self.sphinx_env.temp_data.get(
720-
"highlight_language", self.sphinx_env.config.highlight_language
719+
name = (
720+
self.sphinx_env.temp_data.get("highlight_language")
721+
or self.sphinx_env.config.highlight_language
721722
)
722723

723724
lineno_start = 1

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ usedevelop = true
2020
deps =
2121
sphinx7: sphinx>=7,<8
2222
sphinx8: sphinx>=8,<9
23+
pygments<2.19 # TODO fix test regression with 2.19
2324
extras =
2425
linkify
2526
testing

0 commit comments

Comments
 (0)