-
Notifications
You must be signed in to change notification settings - Fork 16
Update docs (major) #231
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
Closed
Closed
Update docs (major) #231
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
>=0.13
->>=4.0.1
>=0.13
->>=4.0.1
>=7.0
->>=8.2.3
>=7.0
->>=8.2.3
*
->>=3.1.0
Release Notes
ExecutableBookProject/MyST-Parser (myst-parser)
v4.0.1
🔧 Minor fix for Sphinx 8.2 compatibility (in gh-pr:1013)
v4.0.0
This release bumps the supported versions of:
3.10
and greater>=7,<9
>=0.19,<0.22
Additionally, footnotes are now parsed similar to the corresponding reStructuredText, in that resolution (between definitions and references) and ordering is now deferred to transforms on the doctree (in gh-pr:931).
This allows for the proper interaction with other docutils/sphinx transforms, including those that perform translations,
and logging of warnings for duplicate/unreferenced footnote definitions and also for footnote references with no definitions.
See the footnotes guide for more information.
Full Changelog: v3.0.1...v4.0.0
v3.0.1
🐛 Bug Fixes
Full Changelog: v3.0.0...v3.0.1
v3.0.0
Upgraded dependencies
New features
line-block
directive by gh-user:chrisjsewell in gh-pr:900Improvements
attr_block
by gh-user:chrisjsewell in gh-pr:831Internal
Documentation
used
in docs/syntax/math.md by gh-user:ice-tong in gh-pr:810Full Changelog: v2.0.0...v3.0.0
v2.0.0
This release primarily updates core myst-parser dependencies,
with some minor changes to parsing behaviour:
⬆️ UPGRADE:
markdown-it-py
to v3 (gh-pr:773)and https://github.com/executablebooks/mdit-py-plugins/releases/tag/v0.4.0
⬆️ UPGRADE:
linkify-it-py
to v2 (gh-pr:675)⬆️ UPGRADE: Add support for
docutils
v0.20 (gh-pr:775)⬆️ UPGRADE: Add support for
sphinx
v7, and remove v5 support (gh-pr:776)⬆️ UPGRADE: Remove Python 3.7 support and add testing for Python 3.11 (gh-pr:772)
👌 Improve default slug generation for heading anchors, thanks to gh-user:Cimbali (gh-pr:777)
For example,
# ` a` b `c `
will now correctly create the slug-a-b-c-
and nota-b-c
👌 IMPROVE: Substitution extension (gh-pr:777)
myst.substitution
warning for errors in resolving the substitution content.🧪 Introduce a gate/check GHA job, thanks to gh-user:webknjaz (gh-pr:635)
Full Changelog: v1.0.0...v2.0.0
v1.0.0
🎉 MyST-Parser 1.0.0 🎉
This changes absolutely nothing in the code, or about the maintenance/release policy of this project.
But it does feel about time 😄
v0.19.1
🐛 FIX
NoURI
error in doc reference resolution, for texinfo builds (gh-pr:734)v0.18.1
Full Changelog: v0.18.0...v0.18.1
attrs_image
(experimental) extension in gh-pr:620{#id .class width=100px}
v0.18.0
Full Changelog: v0.17.2...v0.18.0
This release adds support for Sphinx v5 (dropping v3), restructures the code base into modules, and also restructures the documentation, to make it easier for developers/users to follow.
It also introduces document-level configuration via the Markdown front-matter, under the
myst
key.See the Local configuration section for more information.
Breaking changes
This should not be breaking, for general users of the sphinx extension (with
sphinx>3
),but will be for anyone directly using the Python API, mainly just requiring changes in import module paths.
The
to_docutils
,to_html
,to_tokens
(frommyst_parser/main.py
) andmock_sphinx_env
/parse
(frommyst_parser.sphinx_renderer.py
) functions have been removed, since these were primarily for internal testing.Instead, for single page builds, users should use the docutils parser API/CLI (see ),
and for testing, functionality has been moved to https://github.com/chrisjsewell/sphinx-pytest.
The top-level
html_meta
andsubstitutions
front-matter keys have also been deprecated (i.e. they will still work but will emit a warning), as they now form part of themyst
config, e.g.v0.17.2
Full Changelog: v0.17.1...v0.17.2
attrs
bydataclasses
for configuration (gh-pr:557)v0.17.0
This release contains a number of breaking improvements.
Full Changelog: v0.16.1...v0.17.0
WARNING: This is a breaking change for links that rely on auto-generated anchor links. You should now manually enable auto-generated anchor links if you see errors like
WARNING reference target not found
.Markdown links are of the format
[text](link)
.MyST-Parser looks to smartly resolve such links, by identifying if they are:
[text](http://example.com)
[text](file.md)
header-anchors
are enabled, anchor links are also supported, e.g.[text](file.md#anchor)
[text](my-reference)
an additional situation is now supported:
[text](file.js)
. This behaves similarly to the sphinxdownload
role.In addition, configuration to more finely tune this behaviour has been added.
myst_all_links_external=True
, will make all links be treated as (1)myst_url_schemes=("http", "https")
, sets what URL schemes are treated as (1)myst_ref_domains=("std", "py")
, sets what Sphinx reference domains are checked, when handling (3)See Markdown Links and Referencing for more information.
WARNING: This is a breaking change for dollar math. You should now manually enable dollar math (see below).
The default configuration is now
myst_enable_extensions=()
, instead ofmyst_enable_extensions=("dollarmath",)
.If you are using math enclosed in
$
or$$
in your documents, you should enabledollarmath
explicitly.See Dollar delimited math for more information.
⬆️ Drop Python 3.6 support
MyST-Parser now supports, and is tested against, Python 3.7 to 3.10.
✨ Add the
strikethrough
extension andmyst_gfm_only
configurationThe
strikethrough
extension allows text within~~
delimiters to have a strike-through (horizontal line) placed over it.For example,
~~strikethrough with *emphasis*~~
renders as:strikethrough with emphasis.Important: This extension is currently only supported for HTML output.
See Strikethrough for more information.
The
myst_gfm_only=True
configuration sets up specific configuration, to enable compliance only with GitHub-flavored Markdown, including enabling thestrikethrough
,tasklist
andlinkify
extensions, but disabling support for roles and directives.✨ Add
myst_title_to_header
configurationSetting
myst_title_to_header=True
, allows for atitle
key in the frontmatter to be used as the document title.for example:
v0.16.1
✨ NEW: Add
myst_linkify_fuzzy_links
option.When using the
linkify
extension, this option can be used to disable matching of links that do not contain a schema (such ashttp://
).v0.15.2
This is mainly a maintenance release that fixes some incompatibilities with
sphinx<3.1
, improvements for compatibilitywith
docutils=0.17
, and improvements to robustness.v0.15.1
👌 IMPROVE: MathJax compatibility with
nbsphinx
nbsphinx
also overrides the MathJax configuration.For compatibility,
output_area
is added to the list of default processed classes, and the override warning is allowed to be suppressed withsuppress_warnings = ["myst.mathjax"]
.v0.15.0
Upgraded to
sphinx
v4 ⬆️A principe change in this release is to updates the requirements of myst-parser from
sphinx>=2,<4
tosphinx>=3,<5
.Changed MathJax handling ♻️
Instead of removing all
$
processing for the whole project,during MyST document parsing, the top-level section is now given the classes
tex2jax_ignore
andmathjax_ignore
(turning off default MathJax processing of all HTML elements)and MathJax is then configured to process elements with the
tex2jax_process|mathjax_process|math
classes.See the math syntax guide for further information.
Set URL scheme defaults‼️
The
myst_url_schemes
default is now:("http", "https", "mailto", "ftp")
.This means that only these URL will be considered as external (e.g.
[](https://example.com)
),and references like
[](prefix:main)
will be considered as internal references.Set
myst_url_schemes = None
, to revert to the previous default.Added
myst_heading_slug_func
option 👌Use this option to specify a custom function to auto-generate heading anchors (see Auto-generated header anchors).
Thanks to gh-user:jpmckinney!
v0.14.0
Upgrade to
markdown-it-py
v1.0 ⬆️This release updates the code-base to fully support the markdown-it-py
v1.0.0
release.In particular for users, this update alters the parsing of tables to be consistent with the Github Flavoured Markdown (GFM) specification.
New Features ✨
Task lists utilise the markdown-it-py tasklists plugin, and are applied to Markdown list items starting with
[ ]
or[x]
.Add "tasklist" to the
myst_enable_extensions
configuration to enable.See the optional syntax guide for further information.
The
sub-ref
role has been added for use identical to ReST's|name|
syntax.This allows one to access Sphinx's built-in
|today|
,|release|
and|version|
substitutions, and also introduces two new substitutions:wordcount-words
andwordcount-minutes
, computed by the markdown-it-pywordcount_plugin
.> {sub-ref}`today` | {sub-ref}`wordcount-words` words | {sub-ref}`wordcount-minutes` min read
See the roles syntax guide for further information.
The
dmath_double_inline
configuration option allows display math (i.e.$$
) within an inline context.See the math syntax guide for further information.
Remove v0.13 deprecations‼️
The deprecations made to extension configurations and colon fences in
0.13.0
(see below) have now been removed:myst_admonition_enable
,myst_figure_enable
,myst_dmath_enable
,myst_amsmath_enable
,myst_deflist_enable
,myst_html_img_enable
:::{admonition,class}
->:::{admonition}\n:class: class
:::{figure}
->:::{figure-md}
Fix extraction of nested footnotes 🐛
Previously footnote definitions in block elements like lists would crash the parsing:
These are now correctly extracted.
v0.13.7
👌 IMPROVE: Add warning for nested headers:
Nested headers are not supported within most elements (this is a limitation of the docutils/sphinx document structure), and can lead to unexpected outcomes.
For example in admonitions:
v0.13.5
v0.6.2
:In particular, this fixes missing source line mappings for table rows and their children
rawtext
in AST nodes:We now ensure that the raw text is propagated from the Markdown tokens to the Sphinx AST.
In particular, this is required by the
gettext
builder, to generate translation POT templates.Thanks to gh-user:jpmckinney!
myst.subtype
:All parsing warnings are assigned a type/subtype, and also the messages are appended with them.
These warning types can be suppressed with the sphinx
suppress_warnings
config option.See How-to suppress warnings for more information.
v0.13.3
Minor fixes:
v0.13.2
✨ NEW: Add
html_admonition
extension: By adding
"html_admonition"
tomyst_enable_extensions
, you can enable parsing of<div class="admonition">
HTML blocks to sphinx admonitions.: This is helpful when you care about viewing the "source" Markdown, such as in Jupyter Notebooks.
: For example:
: See the optional syntax guide for further information.
👌 IMPROVE: Footnotes
: If the label is an integer, then it will always use this integer for the rendered label (i.e. they are manually numbered).
: Add
myst_footnote_transition
configuration, to turn on/off transition line.: Add
footnotes
class to transition<hr>
in HTML.: See the typography guide for further information.
👌 IMPROVE:
substitution
extension logic: Parse inline substitutions without block rules, unless the substitution starts with a directive.
🐛 FIX: Render front-matter as
field_list
: To improve use by sphinx extensions).
👌 IMPROVE: Code quality
: Add isort and mypy type checking to code base.
(thanks to contributors gh-user:akhmerov, gh-user:tfiers)
v0.13.1
👌 Directives can now be used for inline substitutions, e.g.
executablebooks/MyST-Parser (myst_parser)
v4.0.1
Compare Source
🔧 Minor fix for Sphinx 8.2 compatibility (in gh-pr:1013)
v4.0.0
Compare Source
This release bumps the supported versions of:
3.10
and greater>=7,<9
>=0.19,<0.22
Additionally, footnotes are now parsed similar to the corresponding reStructuredText, in that resolution (between definitions and references) and ordering is now deferred to transforms on the doctree (in gh-pr:931).
This allows for the proper interaction with other docutils/sphinx transforms, including those that perform translations,
and logging of warnings for duplicate/unreferenced footnote definitions and also for footnote references with no definitions.
See the footnotes guide for more information.
Full Changelog: v3.0.1...v4.0.0
v3.0.1
Compare Source
🐛 Bug Fixes
Full Changelog: v3.0.0...v3.0.1
v3.0.0
Compare Source
Upgraded dependencies
New features
line-block
directive by gh-user:chrisjsewell in gh-pr:900Improvements
attr_block
by gh-user:chrisjsewell in gh-pr:831Internal
Documentation
used
in docs/syntax/math.md by gh-user:ice-tong in gh-pr:810Full Changelog: v2.0.0...v3.0.0
v2.0.0
Compare Source
This release primarily updates core myst-parser dependencies,
with some minor changes to parsing behaviour:
⬆️ UPGRADE:
markdown-it-py
to v3 (gh-pr:773)and https://github.com/executablebooks/mdit-py-plugins/releases/tag/v0.4.0
⬆️ UPGRADE:
linkify-it-py
to v2 (gh-pr:675)⬆️ UPGRADE: Add support for
docutils
v0.20 (gh-pr:775)⬆️ UPGRADE: Add support for
sphinx
v7, and remove v5 support (gh-pr:776)⬆️ UPGRADE: Remove Python 3.7 support and add testing for Python 3.11 (gh-pr:772)
👌 Improve default slug generation for heading anchors, thanks to gh-user:Cimbali (gh-pr:777)
For example,
# ` a` b `c `
will now correctly create the slug-a-b-c-
and nota-b-c
👌 IMPROVE: Substitution extension (gh-pr:777)
myst.substitution
warning for errors in resolving the substitution content.🧪 Introduce a gate/check GHA job, thanks to gh-user:webknjaz (gh-pr:635)
Full Changelog: v1.0.0...v2.0.0
v1.0.0
Compare Source
🎉 MyST-Parser 1.0.0 🎉
This changes absolutely nothing in the code, or about the maintenance/release policy of this project.
But it does feel about time 😄
v0.19.2
Compare Source
✨ NEW: Add myst_fence_as_directive config (gh-pr:742)
Setting the following config, for example:
v0.19.1
Compare Source
🐛 FIX
NoURI
error in doc reference resolution, for texinfo builds (gh-pr:734)v0.19.0
Compare Source
This release brings a number of exciting new features, improvements, and upgrades 🎉
Full Changelog: v0.18.1...v0.19.0
📚 Rewritten documentation
The documentation has been almost completely rewritten,
with a clearer structure, many more examples, rich hover tips, and a new live preview page (powered by pyscript, gh-pr:717).
The code base API is also now fully documented by sphinx-autodoc2, which even allows for MyST docstrings! (gh-pr:704).
⬆️ Add Sphinx 6 support, drop Sphinx 4
The code base has been updated to support sphinx v6, and is no longer tested against sphinx v4 (gh-pr:664)
📄 Extended docutils (single-page) support
The
docutils
parser now supports many more features, and improvements to support live previews:myst_suppress_warnings
option added, mirroring Sphinx, to suppress MyST warnings (gh-pr:655)myst_meta_html
andmyst_substitutions
options are now supported (gh-pr:672)myst_heading_anchors
option is now supported (gh-pr:678)🔗 Extended Markdown links
See the Extended Markdown links section for the full guide.
You can now use standard Markdown link syntax to reference many different types of targets, in a more consistent way.
[text](relative/path/myfile.md)
work as previously, to link to files,but they can also be relative to source directory:
[text](/path/from/srcdir/myfile.md)
.You can also use
<project:file.md>
<path:myfile.txt>
will link specifically to a downloadable file[text](#target)
or<project:#target>
will link (in order of priority) to any local target, local heading anchor, target in the same project, or intersphinx (inventory) target[text](inv:name:domain:type#target)
will link specifically to a Sphinx inventory target, or to any inventory<inv:#target>
, and can even use*
wildcards like<inv:*:*:*#*.target>
myst_inventories
config optionmyst-inv
CLI makes it easy to find the correct inventory target:::{tip}
It is advised (although not immediately necessary) to prefix all internal references with
#
.For example,
[...](my-reference)
, should be changed to[...](#my-reference)
.:::
{}
Attributes syntaxThe
attrs_inline
andattrs_block
extensions allow for common Markdown syntaxes to be extended with greater control over the output.For example, you can now add classes, ids, and other attributes to inline code, images, and links, as well as to code blocks and directives.
`a = 1`{#id .class l=python}
{#id .class width=100px}
[some text]{#id .class}
A paragraph block can have attributes too:
A code fence can be given line numbers and line emphasis:
A definition list can be turned into a glossary, with referenceable terms:
Quote blocks can be given an attribution:
{attribution="Chris Sewell"} > My quote
👌 Miscellaneous improvements
colon_fence
extension now renders internal content as MyST, rather than as a code block (gh-pr:713)include
directive in MyST documents now supports a:heading-offset:
option, to offset the heading levels in the included documentmyst_heading_slug_func
option now supports setting astr
which points to a fully qualified function name, e.g."module.path.func"
(gh-pr:696)myst_enable_checkboxes
option allows for task list checkboxes to be enabled/disabled (gh-pr:686)Additional contributions
Python<3.8
in gh-pr:642, thanks to gh-user:hukkinv0.18.1
Compare Source
Full Changelog: v0.18.0...v0.18.1
attrs_image
(experimental) extension in gh-pr:620{#id .class width=100px}
v0.18.0
Compare Source
Full Changelog: v0.17.2...v0.18.0
This release adds support for Sphinx v5 (dropping v3), restructures the code base into modules, and also restructures the documentation, to make it easier for developers/users to follow.
It also introduces document-level configuration via the Markdown front-matter, under the
myst
key.See the Local configuration section for more information.
Breaking changes
This should not be breaking, for general users of the sphinx extension (with
sphinx>3
),but will be for anyone directly using the Python API, mainly just requiring changes in import module paths.
The
to_docutils
,to_html
,to_tokens
(frommyst_parser/main.py
) andmock_sphinx_env
/parse
(frommyst_parser.sphinx_renderer.py
) functions have been removed, since these were primarily for internal testing.Instead, for single page builds, users should use the docutils parser API/CLI (see ),
and for testing, functionality has been moved to https://github.com/chrisjsewell/sphinx-pytest.
The top-level
html_meta
andsubstitutions
front-matter keys have also been deprecated (i.e. they will still work but will emit a warning), as they now form part of themyst
config, e.g.v0.17.2
Compare Source
Full Changelog: v0.17.1...v0.17.2
attrs
bydataclasses
for configuration (gh-pr:557)v0.17.1
Compare Source
Full Changelog: v0.17.0...v0.17.1
v0.17.0
Compare Source
This release contains a number of breaking improvements.
Full Changelog: v0.16.1...v0.17.0
WARNING: This is a breaking change for links that rely on auto-generated anchor links. You should now manually enable auto-generated anchor links if you see errors like
WARNING reference target not found
.Markdown links are of the format
[text](link)
.MyST-Parser looks to smartly resolve such links, by identifying if they are:
[text](http://example.com)
[text](file.md)
header-anchors
are enabled, anchor links are also supported, e.g.[text](file.md#anchor)
[text](my-reference)
an additional situation is now supported:
[text](file.js)
. This behaves similarly to the sphinxdownload
role.In addition, configuration to more finely tune this behaviour has been added.
myst_all_links_external=True
, will make all links be treated as (1)myst_url_schemes=("http", "https")
, sets what URL schemes are treated as (1)myst_ref_domains=("std", "py")
, sets what Sphinx reference domains are checked, when handling (3)See Markdown Links and Referencing for more information.
WARNING: This is a breaking change for dollar math. You should now manually enable dollar math (see below).
The default configuration is now
myst_enable_extensions=()
, instead ofmyst_enable_extensions=("dollarmath",)
.If you are using math enclosed in
$
or$$
in your documents, you should enabledollarmath
explicitly.See Dollar delimited math for more information.
⬆️ Drop Python 3.6 support
MyST-Parser now supports, and is tested against, Python 3.7 to 3.10.
✨ Add the
strikethrough
extension andmyst_gfm_only
configurationThe
strikethrough
extension allows text within~~
delimiters to have a strike-through (horizontal line) placed over it.For example,
~~strikethrough with *emphasis*~~
renders as:strikethrough with emphasis.Important: This extension is currently only supported for HTML output.
See Strikethrough for more information.
The
myst_gfm_only=True
configuration sets up specific configuration, to enable compliance only with GitHub-flavored Markdown, including enabling thestrikethrough
,tasklist
andlinkify
extensions, but disabling support for roles and directives.✨ Add
myst_title_to_header
configurationSetting
myst_title_to_header=True
, allows for atitle
key in the frontmatter to be used as the document title.for example:
v0.16.1
Compare Source
✨ NEW: Add
myst_linkify_fuzzy_links
option.When using the
linkify
extension, this option can be used to disable matching of links that do not contain a schema (such ashttp://
).v0.16.0
Compare Source
This release contains a number of exciting improvements:
Upgrade of Markdown parser
markdown-it-py
has been upgraded to v2.0.0.This upgrade brings full compliance with the CommonMark v0.30 specification.
Additionally,
mdit-py-plugins
has been upgraded to v0.3.0.This improves the parsing of the MyST target syntax, to allow for spaces and additional special characters in the target name,
for example this is now valid:
v0.15.2
Compare Source
This is mainly a maintenance release that fixes some incompatibilities with
sphinx<3.1
, improvements for compatibilitywith
docutils=0.17
, and improvements to robustness.v0.15.1
Compare Source
👌 IMPROVE: MathJax compatibility with
nbsphinx
nbsphinx
also overrides the MathJax configuration.For compatibility,
output_area
is added to the list of default processed classes, and the override warning is allowed to be suppressed withsuppress_warnings = ["myst.mathjax"]
.v0.15.0
Compare Source
Upgraded to
sphinx
v4 ⬆️A principe change in this release is to updates the requirements of myst-parser from
sphinx>=2,<4
tosphinx>=3,<5
.Changed MathJax handling ♻️
Instead of removing all
$
processing for the whole project,during MyST document parsing, the top-level section is now given the classes
tex2jax_ignore
andmathjax_ignore
(turning off default MathJax processing of all HTML elements)and MathJax is then configured to process elements with the
tex2jax_process|mathjax_process|math
classes.See the math syntax guide for further information.
Set URL scheme defaults‼️
The
myst_url_schemes
default is now:("http", "https", "mailto", "ftp")
.This means that only these URL will be considered as external (e.g.
[](https://example.com)
),and references like
[](prefix:main)
will be considered as internal references.Set
myst_url_schemes = None
, to revert to the previous default.Added
myst_heading_slug_func
option 👌Use this option to specify a custom function to auto-generate heading anchors (see Auto-generated header anchors).
Thanks to gh-user:jpmckinney!
v0.14.0
Compare Source
Upgrade to
markdown-it-py
v1.0 ⬆️This release updates the code-base to fully support the markdown-it-py
v1.0.0
release.In particular for users, this update alters the parsing of tables to be consistent with the Github Flavoured Markdown (GFM) specification.
New Features ✨
Task lists utilise the markdown-it-py tasklists plugin, and are applied to Markdown list items starting with
[ ]
or[x]
.Add "tasklist" to the
myst_enable_extensions
configuration to enable.See the optional syntax guide for further information.
The
sub-ref
role has been added for use identical to ReST's|name|
syntax.This allows one to access Sphinx's built-in
|today|
,|release|
and|version|
substitutions, and also introduces two new substitutions:wordcount-words
andwordcount-minutes
, computed by the markdown-it-pywordcount_plugin
.> {sub-ref}`today` | {sub-ref}`wordcount-words` words | {sub-ref}`wordcount-minutes` min read
See the roles syntax guide for further information.
The
dmath_double_inline
configuration option allows display math (i.e.$$
) within an inline context.See the math syntax guide for further information.
Remove v0.13 deprecations‼️
The deprecations made to extension configurations and colon fences in
0.13.0
(see below) have now been removed:myst_admonition_enable
,myst_figure_enable
,myst_dmath_enable
,myst_amsmath_enable
,myst_deflist_enable
,myst_html_img_enable
:::{admonition,class}
->:::{admonition}\n:class: class
:::{figure}
->:::{figure-md}
Fix extraction of nested footnotes 🐛
Previously footnote definitions in block elements like lists would crash the parsing:
These are now correctly extracted.
v0.13.7
Compare Source
👌 IMPROVE: Add warning for nested headers:
Nested headers are not supported within most elements (this is a limitation of the docutils/sphinx document structure), and can lead to unexpected outcomes.
For example in admonitions:
v0.13.6
Compare Source
🐛 FIX: docutils
v0.17
compatibilityv0.13.5
v0.6.2
:In particular, this fixes missing source line mappings for table rows and their children
rawtext
in AST nodes:We now ensure that the raw text is propagated from the Markdown tokens to the Sphinx AST.
In particular, this is required by the
gettext
builder, to generate translation POT templates.Thanks to gh-user:jpmckinney!
myst.subtype
:All parsing warnings are assigned a type/subtype, and also the messages are appended with them.
These warning types can be suppressed with the sphinx
suppress_warnings
config option.See How-to suppress warnings for more information.
v0.13.3
Compare Source
Minor fixes:
v0.13.2
Compare Source
✨ NEW: Add
html_admonition
extension: By adding
"html_admonition"
tomyst_enable_extensions
, you can enable parsing of<div class="admonition">
HTML blocks to sphinx admonitions.: This is helpful when you care about viewing the "source" Markdown, such as in Jupyter Notebooks.
: For example:
: See the optional syntax guide for further information.
👌 IMPROVE: Footnotes
: If the label is an integer, then it will always use this integer for the rendered label (i.e. they are manually numbered).
: Add
myst_footnote_transition
configuration, to turn on/off transition line.: Add
footnotes
class to transition<hr>
in HTML.: See the typography guide for further information.
👌 IMPROVE:
substitution
extension logic: Parse inline substitutions without block rules, unless the substitution starts with a directive.
🐛 FIX: Render front-matter as
field_list
: To improve use by sphinx extensions).
👌 IMPROVE: Code quality
: Add isort and mypy type checking to code base.
(thanks to contributors gh-user:akhmerov, gh-user:tfiers)
v0.13.1
Compare Source
👌 Directives can now be used for inline substitutions, e.g.
sphinx-doc/sphinx (sphinx)
v8.2.3
: Sphinx 8.2.3Compare Source
Changelog: https://www.sphinx-doc.org/en/master/changes/8.2.html
v8.2.2
: Sphinx 8.2.2Compare Source
Changelog: https://www.sphinx-doc.org/en/master/changes/8.2.html
v8.2.1
: Sphinx 8.2.1Compare Source
Changelog: https://www.sphinx-doc.org/en/master/changes/8.2.html
v8.2.0
: Sphinx 8.2.0Compare Source
Changelog: https://www.sphinx-doc.org/en/master/changes/8.2.html
Dependencies
Incompatible changes
has_equations
datafrom the
MathDomain
domain.The undocumented
MathDomain.has_equations
methodnow unconditionally returns
True
.These are replaced by the
has_maths_elements
key of the page context dict.Patch by Adam Turner.
kbd
roleno longer uses a
<kbd class="kbd compound">
element to wrapthe keys and separators, but places them directly in the relevant parent node.
This means that CSS rulesets targeting
kbd.compound
or.kbd.compound
will no longer have any effect.
Patch by Adam Turner.
Deprecated
SingleHTMLBuilder.fix_refuris
method.Patch by James Addison.
sphinx.util.import_object
.Patch by Matthias Geier.
Features added
duplicate_declaration
warning type,with
duplicate_declaration.c
andduplicate_declaration.cpp
subtypes.Patch by Julien Lecomte and Adam Turner.
the keys that should be present.
Patch by Nicolas Peugnet.
class
option to theautosummary
directive.Patch by Tim Hoffmann.
Google-style docstrings to use the optional and default keywords.
Patch by Chris Barrick.
kbd
role as aSphinxRole
.Patch by Adam Turner.
Patch by Adam Turner.
toctree
directivewhen a glob pattern doesn't match any documents,
via the new
toc.empty_glob
warning sub-type.Patch by Slawek Figiel.
autodoc.mocked_object
warnings sub-type.Patch by Cyril Roelandt.
.pyi
type stub filesto auto-document native modules.
Patch by Adam Turner, partially based on work by Allie Fitter.
in the Python and Javascript domains, via the new
python_trailing_comma_in_multi_line_signatures
andjavascript_trailing_comma_in_multi_line_signatures
configuration options.
math
directive'snowrap
optionto
no-wrap
.Patch by Adam Turner.
via the new
autodoc_use_type_comments
option,which defaults to
True
for backwards compatibility.The default will change to
False
in Sphinx 10.Patch by Adam Turner.
ref.any
warnings sub-typeto allow suppressing the ambiguous 'any' cross-reference warning.
Patch by Simão Afonso and Adam Turner.
the
:no-index-entry:
option.Patch by Adam Turner.
:no-index-entry:
and include the
:no-index:
and:no-index-entry:
options withinautodoc_default_options
.Patch by Jonny Saunders and Adam Turner.
Patch by Tim Hoffmann.
in the Python domain to abstractmethod from abstract.
Patch by Adam Turner.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.