Skip to content

Commit fbb7f1d

Browse files
authored
🔧 Minor fix for sphinx 8.2 compat (#1013)
closes #1010
1 parent 0437558 commit fbb7f1d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.readthedocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ python:
1414
- rtd
1515

1616
sphinx:
17+
configuration: docs/conf.py
1718
builder: html
1819
fail_on_warning: true

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

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ testing = [
7575
"pytest-regressions",
7676
"pytest-param-files~=0.6.0",
7777
"sphinx-pytest",
78+
"pygments<2.19", # TODO fix test regression with 2.19"
7879
]
7980
testing-docutils = [
8081
"pygments",

0 commit comments

Comments
 (0)