Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 Minor fix for sphinx 8.2 compat #1013

Merged
merged 3 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ python:
- rtd

sphinx:
configuration: docs/conf.py
builder: html
fail_on_warning: true
5 changes: 3 additions & 2 deletions myst_parser/mdit_to_docutils/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,9 @@ def render_fence(self, token: SyntaxTreeNode) -> None:
if not name and self.sphinx_env is not None:
# use the current highlight setting, via the ``highlight`` directive,
# or ``highlight_language`` configuration.
name = self.sphinx_env.temp_data.get(
"highlight_language", self.sphinx_env.config.highlight_language
name = (
self.sphinx_env.temp_data.get("highlight_language")
or self.sphinx_env.config.highlight_language
)

lineno_start = 1
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ testing = [
"pytest-regressions",
"pytest-param-files~=0.6.0",
"sphinx-pytest",
"pygments<2.19", # TODO fix test regression with 2.19"
]
testing-docutils = [
"pygments",
Expand Down
Loading