myst-parser breaking changes
Updated December 4, 2026
On this page
Latest version 5.2.0, released November 10, 2026. Source repository
Its 5.0.0 release drops Python 3.10. Python end of life dates.
- From 4.0.0 to 5.2.0: 34 breaking changes in 2 versions.
- From 0.17.0 to 5.2.0: 200 breaking changes in 7 versions.
myst-parser 5.2.0 breaking changes
- Removed
myst_parser.parsers.directives.options_to_items
myst_parser.parsers.directives.options_to_items was removed in myst-parser 5.2.0 pypi.org - Behavior changed
Line indentation is preserved and two trailing spaces no longer make a hard line break. github.com - Behavior changed
Third and later duplicate heading slugs now get x-2, x-3 instead of x-1-2. Links using the old slug of a third or later duplicate, such as [](#x-1-2), must be changed to [](#x-2). github.com - Behavior changed
A valueless alt attribute is now an empty string rather than None. github.com - Behavior changed
Blank lines at the start and end of $$ math block content are removed. github.com - Behavior changed
An explicit target placed before a heading becomes the section's primary id, used by tocs, permalinks and objects.inv; the implicit heading id is kept as a secondary anchor. github.com - Behavior changed
Directives now receive the full fenced text as block_text, and content_offset is -1 when the body starts on the opening line. github.com - Behavior changed
Sdists now hold only the package, pyproject.toml, README.md and LICENSE, no longer CHANGELOG.md, tox.ini or .github/. github.com - Behavior changed
heading_slug_func
Options that can only be set globally now warn and are ignored in a document's front matter. github.com - Behavior changed
inventories
The per-document effect of inventories in front matter is removed; set it globally. github.com - Behavior changed
myst_links_external_new_tab
The rel value is corrected from noreferer to noreferrer, and an authored target or rel is no longer overwritten. github.com - Behavior changed
myst.directive_option
Unknown options are reported one per warning as Unknown option key: 'x', instead of one aggregate message; tests matching the old message need updating. github.com - Behavior changed
update_mathjax
The per-document effect of update_mathjax is removed; set it globally. github.com - Configuration changed
myst-parser and myst-docutils now require mdit-py-plugins>=0.7,<1, previously ~=0.6,>=0.6.1. github.com - Signature changed
myst_parser.cli.MdParserConfig.__init__
Was def __init__(self, commonmark_only: bool = False, gfm_only: bool = False, enable_extensions: set[str] = set(), disable_syntax: Iterable[str] = list(), all_links_external: bool = False, links_external_new_tab: bool = False, url_schemes... pypi.org - Signature changed
myst_parser.config.main.MdParserConfig.__init__
Was def __init__(self, commonmark_only: bool = False, gfm_only: bool = False, enable_extensions: set[str] = set(), disable_syntax: Iterable[str] = list(), all_links_external: bool = False, links_external_new_tab: bool = False, url_schemes... pypi.org - Signature changed
myst_parser.mdit_to_docutils.base.compute_unique_slug
Was def compute_unique_slug(token_tree: SyntaxTreeNode, slugs: Iterable[str], slug_func: None | Callable[[str], str] = None) -> str; now def compute_unique_slug(token_tree: SyntaxTreeNode, slugs: Container[str], slug_func: Callable[[str]... pypi.org - Signature changed
myst_parser.mdit_to_docutils.base.DocutilsRenderer.run_directive
Was def run_directive(self, name: str, first_line: str, content: str, position: int, additional_options: dict[str, str] | None = None) -> list[nodes.Element]; now def run_directive(self, name: str, first_line: str, content: str, position... pypi.org - Signature changed
myst_parser.mdit_to_docutils.base.MockInliner.parse
Was def parse(self, text: str, lineno: int, memo: Any, parent: nodes.Node) -> tuple[list[nodes.Node], list[nodes.system_message]]; now def parse(self, text: str, lineno: int, memo: Any, parent: nodes.Node, *, preserve_edge_whitespace: bool... pypi.org - Signature changed
myst_parser.mdit_to_docutils.base.MockState.__init__
Was def __init__(self, renderer: DocutilsRenderer, state_machine: MockStateMachine, lineno: int); now def __init__(self, renderer: DocutilsRenderer, state_machine: MockStateMachine, lineno: int, *, preserve_inline_edge_whitespace: bool =... pypi.org - Signature changed
myst_parser.mocking.DocutilsRenderer.run_directive
Was def run_directive(self, name: str, first_line: str, content: str, position: int, additional_options: dict[str, str] | None = None) -> list[nodes.Element]; now def run_directive(self, name: str, first_line: str, content: str, position... pypi.org - Signature changed
myst_parser.mocking.MockInliner.parse
Was def parse(self, text: str, lineno: int, memo: Any, parent: nodes.Node) -> tuple[list[nodes.Node], list[nodes.system_message]]; now def parse(self, text: str, lineno: int, memo: Any, parent: nodes.Node, *, preserve_edge_whitespace: bool... pypi.org - Signature changed
myst_parser.mocking.MockState.__init__
Was def __init__(self, renderer: DocutilsRenderer, state_machine: MockStateMachine, lineno: int); now def __init__(self, renderer: DocutilsRenderer, state_machine: MockStateMachine, lineno: int, *, preserve_inline_edge_whitespace: bool =... pypi.org - Signature changed
myst_parser.parsers.directives.DirectiveParsingResult.__init__
Was def __init__(self, arguments: list[str], options: dict, body: list[str], body_offset: int, warnings: list[ParseWarnings]) -> None; now def __init__(self, arguments: list[str], options: dict, body: list[str], body_offset: int, warnings... pypi.org - Signature changed
myst_parser.parsers.options.State.__init__
Was def __init__(self, has_comments: bool = False) -> None; now def __init__(self, has_comments: bool = False, comment_lines: list[int] = list()) -> None. pypi.org - Signature changed
myst_parser.parsers.parse_html.Element.__eq__
Was def __eq__(self, item: Any) -> bool; now def __eq__(self, item: object) -> bool. pypi.org - Signature changed
myst_parser.parsers.parse_html.Root.__eq__
Was def __eq__(self, item: Any) -> bool; now def __eq__(self, item: object) -> bool. pypi.org
myst-parser 5.0.0 breaking changes
- Removed
docutils 0.19 is no longer supported; docutils 0.20 or newer is now required. github.com - Removed
Python 3.10 is no longer supported; the minimum is now Python 3.11. Upgrade Python before installing this release. github.com - Removed
Sphinx 7 is no longer supported; Sphinx 8 or 9 is now required. Upgrade Sphinx before using this release. github.com - Removed
myst_parser.sphinx_ext.main.depart_rubric_html
myst_parser.sphinx_ext.main.depart_rubric_html was removed in myst-parser 5.0.0 pypi.org - Removed
myst_parser.sphinx_ext.main.visit_rubric_html
myst_parser.sphinx_ext.main.visit_rubric_html was removed in myst-parser 5.0.0 pypi.org - Behavior changed
The parser now depends on markdown-it-py v4 instead of v3, which may change parsing output for existing documents. github.com - Signature changed
myst_parser.mdit_to_docutils.base.html_meta_to_nodes
Was def html_meta_to_nodes(data: dict[str, Any], document: nodes.document, line: int, reporter: Reporter) -> list[nodes.pending | nodes.system_message]; now def html_meta_to_nodes(data: dict[str, Any], document: nodes.document, line: int... pypi.org
myst-parser 4.0.0 breaking changes
- Removed
myst_parser.config.main.MystWarnings.MD_FOOTNOTE_DUPE
myst_parser.config.main.MystWarnings.MD_FOOTNOTE_DUPE was removed in myst-parser 4.0.0 pypi.org - Removed
myst_parser.config.main.MystWarnings.MD_FOOTNOTE_MISSING
myst_parser.config.main.MystWarnings.MD_FOOTNOTE_MISSING was removed in myst-parser 4.0.0 pypi.org - Removed
myst_parser.mdit_to_docutils.base.MystWarnings.MD_FOOTNOTE_DUPE
myst_parser.mdit_to_docutils.base.MystWarnings.MD_FOOTNOTE_DUPE was removed in myst-parser 4.0.0 pypi.org - Removed
myst_parser.mdit_to_docutils.base.MystWarnings.MD_FOOTNOTE_MISSING
myst_parser.mdit_to_docutils.base.MystWarnings.MD_FOOTNOTE_MISSING was removed in myst-parser 4.0.0 pypi.org - Removed
myst_parser.mdit_to_docutils.html_to_nodes.MystWarnings.MD_FOOTNOTE_DUPE
myst_parser.mdit_to_docutils.html_to_nodes.MystWarnings.MD_FOOTNOTE_DUPE was removed in myst-parser 4.0.0 pypi.org - Removed
myst_parser.mdit_to_docutils.html_to_nodes.MystWarnings.MD_FOOTNOTE_MISSING
myst_parser.mdit_to_docutils.html_to_nodes.MystWarnings.MD_FOOTNOTE_MISSING was removed in myst-parser 4.0.0 pypi.org - Removed
myst_parser.mdit_to_docutils.sphinx_.MystWarnings.MD_FOOTNOTE_DUPE
myst_parser.mdit_to_docutils.sphinx_.MystWarnings.MD_FOOTNOTE_DUPE was removed in myst-parser 4.0.0 pypi.org - Removed
myst_parser.mdit_to_docutils.sphinx_.MystWarnings.MD_FOOTNOTE_MISSING
myst_parser.mdit_to_docutils.sphinx_.MystWarnings.MD_FOOTNOTE_MISSING was removed in myst-parser 4.0.0 pypi.org - Removed
myst_parser.mdit_to_docutils.transforms.MystWarnings.MD_FOOTNOTE_DUPE
myst_parser.mdit_to_docutils.transforms.MystWarnings.MD_FOOTNOTE_DUPE was removed in myst-parser 4.0.0 pypi.org - Removed
myst_parser.mdit_to_docutils.transforms.MystWarnings.MD_FOOTNOTE_MISSING
myst_parser.mdit_to_docutils.transforms.MystWarnings.MD_FOOTNOTE_MISSING was removed in myst-parser 4.0.0 pypi.org
And 19 more in this version. Sign up to see every change
myst-parser 3.0.0 breaking changes
- Removed
myst_parser.parsers.directives.parse_directive_options
myst_parser.parsers.directives.parse_directive_options was removed in myst-parser 3.0.0 pypi.org - Signature changed
myst_parser.cli.MdParserConfig.__init__
Was def __init__(self, commonmark_only: bool = False, gfm_only: bool = False, enable_extensions: Set[str] = set(), disable_syntax: Iterable[str] = list(), all_links_external: bool = False, url_schemes: Dict[str, Optional[UrlSchemeType]] =... pypi.org - Signature changed
myst_parser.mdit_to_docutils.base.parse_directive_text
Was def parse_directive_text(directive_class: type[Directive], first_line: str, content: str, *, validate_options: bool = True, additional_options: dict[str, str] | None = None) -> DirectiveParsingResult; now def... pypi.org - Signature changed
myst_parser.mocking.DocutilsRenderer.current_node_context
Was def current_node_context(self, node: nodes.Element, append: bool = False) -> Iterator; now def current_node_context(self, node: nodes.Element, append: bool = False) -> Iterator[None]. pypi.org - Signature changed
myst_parser.mocking.MockIncludeDirective.__init__
Was def __init__(self, renderer: DocutilsRenderer, name: str, klass: Include, arguments: list, options: dict, body: list[str], lineno: int); now def __init__(self, renderer: DocutilsRenderer, name: str, klass: Include, arguments... pypi.org - Signature changed
myst_parser.mocking.MockState.parse_directive_block
Was def parse_directive_block(self, content: StringList, line_offset: int, directive: type[Directive], option_presets: dict) -> tuple[list, dict, StringList, int]; now def parse_directive_block(self, content: StringList, line_offset: int... pypi.org - Signature changed
myst_parser.mocking.parse_directive_text
Was def parse_directive_text(directive_class: type[Directive], first_line: str, content: str, *, validate_options: bool = True, additional_options: dict[str, str] | None = None) -> DirectiveParsingResult; now def... pypi.org - Signature changed
myst_parser.parsers.directives.DirectiveParsingResult.__init__
Was def __init__(self, arguments: list[str], options: dict, body: list[str], body_offset: int, warnings: list[str]) -> None; now def __init__(self, arguments: list[str], options: dict, body: list[str], body_offset: int, warnings... pypi.org - Signature changed
myst_parser.parsers.directives.DirectiveParsingResult.warnings
Was warnings: list[str]; now warnings: list[ParseWarnings]. pypi.org - Signature changed
myst_parser.parsers.directives.parse_directive_text
Was def parse_directive_text(directive_class: type[Directive], first_line: str, content: str, *, validate_options: bool = True, additional_options: dict[str, str] | None = None) -> DirectiveParsingResult; now def... pypi.org
myst-parser 2.0.0 breaking changes
- Removed
Support for Sphinx v5 was removed in favour of adding Sphinx v7 support. Users on Sphinx v5 must upgrade Sphinx to keep using this release. github.com - Removed
Python 3.7 is no longer supported. Users on Python 3.7 must upgrade their Python version to keep using this release. github.com - Removed
myst_parser.config.dc_validators.Protocol
myst_parser.config.dc_validators.Protocol was removed in myst-parser 2.0.0 pypi.org - Removed
myst_parser.config.main.TypedDict
myst_parser.config.main.TypedDict was removed in myst-parser 2.0.0 pypi.org - Removed
myst_parser.inventory.TypedDict
myst_parser.inventory.TypedDict was removed in myst-parser 2.0.0 pypi.org - Removed
myst_parser.parsers.docutils_.get_args
myst_parser.parsers.docutils_.get_args was removed in myst-parser 2.0.0 pypi.org - Removed
myst_parser.parsers.docutils_.get_origin
myst_parser.parsers.docutils_.get_origin was removed in myst-parser 2.0.0 pypi.org - Removed
myst_parser.parsers.docutils_.Literal
myst_parser.parsers.docutils_.Literal was removed in myst-parser 2.0.0 pypi.org - Behavior changed
The default heading anchor slug generation now keeps starting and ending whitespace, so slugs for some headings change, for example `-a-b-c-` instead of `a-b-c`. Update any links that depend on the old anchors. github.com - Signature changed
myst_parser.cli.MdParserConfig.__init__
Was def __init__(self, commonmark_only: bool = False, gfm_only: bool = False, enable_extensions: Set[str] = set(), disable_syntax: Iterable[str] = list(), all_links_external: bool = False, url_schemes: Dict[str, Optional[UrlSchemeType]] =... pypi.org
And 3 more in this version. Sign up to see every change
myst-parser 0.19.0 breaking changes
- Removed
myst_parser.config.main.is_callable
myst_parser.config.main.is_callable was removed in myst-parser 0.19.0 pypi.org - Removed
myst_parser.mdit_to_docutils.base.DirectiveParsingError
myst_parser.mdit_to_docutils.base.DirectiveParsingError was removed in myst-parser 0.19.0 pypi.org - Removed
myst_parser.mdit_to_docutils.base.DocutilsRenderer.render_autolink
DocutilsRenderer.render_autolink was removed in myst-parser 0.19.0 pypi.org - Removed
myst_parser.mdit_to_docutils.base.DocutilsRenderer.render_external_url
DocutilsRenderer.render_external_url was removed in myst-parser 0.19.0 pypi.org - Removed
myst_parser.mdit_to_docutils.base.DocutilsRenderer.render_internal_link
DocutilsRenderer.render_internal_link was removed in myst-parser 0.19.0 pypi.org - Removed
myst_parser.mdit_to_docutils.base.is_external_url
myst_parser.mdit_to_docutils.base.is_external_url was removed in myst-parser 0.19.0 pypi.org - Removed
myst_parser.mdit_to_docutils.sphinx_.create_warning
myst_parser.mdit_to_docutils.sphinx_.create_warning was removed in myst-parser 0.19.0 pypi.org - Removed
myst_parser.mdit_to_docutils.sphinx_.SphinxRenderer.doc_env
SphinxRenderer.doc_env was removed in myst-parser 0.19.0 pypi.org - Removed
myst_parser.mdit_to_docutils.utils
myst_parser.mdit_to_docutils.utils was removed in myst-parser 0.19.0 pypi.org - Removed
myst_parser.mocking.DocutilsRenderer.render_autolink
DocutilsRenderer.render_autolink was removed in myst-parser 0.19.0 pypi.org
And 41 more in this version. Sign up to see every change
Older versions
2 older versions, each with its first changes. Sign up to see every change
Show 2 older versions
myst-parser 0.18.0 breaking changes
- Removed
Sphinx 3 is no longer supported in this release, and Sphinx 5 is added. Projects that build with Sphinx 3 must upgrade Sphinx before using this version. github.com - Removed
myst_parser.dc_validators
myst_parser.dc_validators was removed in myst-parser 0.18.0 pypi.org
And 61 more in this version.
myst-parser 0.17.0 breaking changes
- Removed
Python 3.6 is no longer supported, and Python 3.10 is now supported. Users on Python 3.6 must stay on an older release or upgrade Python. github.com - Removed
myst_parser.cli.default_parser
myst_parser.cli.default_parser was removed in myst-parser 0.17.0 pypi.org
And 23 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.