Skip to content

✨ Expose MyST substitutions to reStructuredText - #1194

Open
adamtheturtle wants to merge 1 commit into
executablebooks:masterfrom
adamtheturtle:fix/expose-myst-substitutions-to-rst
Open

✨ Expose MyST substitutions to reStructuredText#1194
adamtheturtle wants to merge 1 commit into
executablebooks:masterfrom
adamtheturtle:fix/expose-myst-substitutions-to-rst

Conversation

@adamtheturtle

Copy link
Copy Markdown

Supersedes #966 by rebasing Chance Zibolski's original implementation onto current master; the original commit authorship is preserved.

This registers configured MyST substitutions as docutils substitution definitions, making them available inside {eval-rst} blocks. It retains the original Sphinx regression coverage and adds coverage for substitutions whose value is None.

Validation:

  • uvx --with tox-uv tox: 1,245 passed, 11 skipped
  • uvx --with tox-uv tox -e ruff-check: passed
  • mypy: passed after installing the tox environment's omitted existing sphinx-syntax-example dependency

The unmodified master branch reproduces that missing-dependency mypy failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants