Skip to content

Sphinx 7.4.0 breaks parsing of MyST-Parser (and probably others) configuration in conf.py #12582

@jfbu

Description

@jfbu

Describe the bug

Bad output:
Capture d’écran 2024-07-15 à 12 11 14

Good output:
Capture d’écran 2024-07-15 à 12 10 44

How to Reproduce

conf.py:

extensions = ['myst_parser',
]

myst_enable_extensions = ["colon_fence"]
source_suffix = ['.rst', '.md']

index.md:

# La FAQ LaTeX francophone !


:::{only} html
Hello
:::

## Section

:::{admonition} Here's my title
:class: tip

Here's my admonition content.
:::

Environment Information

Git bisect blames 82edc3d

Running Sphinx v7.4.0+/82edc3d38
Sphinx version: 7.4.0+/82edc3d38
Python version: 3.12.3 (CPython)
Docutils version: 0.20.1 
Pygments version: 2.18.0
Jinja2 version: 3.1.4
MyST-parser version: 3.0.1

Sphinx extensions

extensions = ['myst_parser',
]

myst_enable_extensions = ["colon_fence"]
source_suffix = ['.rst', '.md']

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions