Skip to content

Commit 5ff197c

Browse files
committed
Merge branch 'master' of github.com:executablebooks/MyST-Parser
2 parents c270d1c + 8a44f5d commit 5ff197c

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ repos:
2121
- id: trailing-whitespace
2222

2323
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: v0.7.0
24+
rev: v0.8.4
2525
hooks:
2626
- id: ruff
2727
args: [--fix]
2828
- id: ruff-format
2929

3030
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: v1.12.1
31+
rev: v1.14.0
3232
hooks:
3333
- id: mypy
3434
args: [--config-file=pyproject.toml]

.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

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 4.0.1 - 2025-02-12
4+
5+
🔧 Minor fix for Sphinx 8.2 compatibility (in <gh-pr:1013>)
6+
37
## 4.0.0 - 2024-08-05
48

59
This release bumps the supported versions of:

myst_parser/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
and [Sphinx](https://github.com/sphinx-doc/sphinx).
44
"""
55

6-
__version__ = "4.0.0"
6+
__version__ = "4.0.1"
77

88

99
def setup(app):

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

myst_parser/parsers/options.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,7 @@ def _scan_flow_scalar_non_spaces(
427427
for k in range(length):
428428
if stream.peek(k) not in "0123456789ABCDEFabcdef":
429429
raise TokenizeError(
430-
"expected escape sequence of %d hexadecimal numbers, but found %r"
431-
% (length, stream.peek(k)),
430+
f"expected escape sequence of {length} hexadecimal numbers, but found {stream.peek(k)!r}",
432431
stream.get_position(),
433432
"while scanning a double-quoted scalar",
434433
start_mark,

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)