You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -363,7 +363,7 @@ In particular for users, this update alters the parsing of tables to be consiste
363
363
364
364
### New Features ✨
365
365
366
-
-**Task lists** utilise the [markdown-it-py tasklists plugin](markdown_it:md/plugins), and are applied to Markdown list items starting with `[ ]` or `[x]`.
366
+
-**Task lists** utilise the [markdown-it-py tasklists plugin](inv:markdown_it#md/plugins), and are applied to Markdown list items starting with `[ ]` or `[x]`.
367
367
368
368
```markdown
369
369
- [ ] An item that needs doing
@@ -541,7 +541,7 @@ substitutions:
541
541
{{ key1 }}
542
542
```
543
543
544
-
The substitutions are assessed as [jinja2 expressions](http://jinja.palletsprojects.com/) and includes the [Sphinx Environment](https://www.sphinx-doc.org/en/master/extdev/envapi.html) as `env`, so you can do powerful thinks like:
544
+
The substitutions are assessed as [jinja2 expressions](http://jinja.palletsprojects.com/) and includes the [Sphinx Environment](inv:sphinx#extdev/envapi) as `env`, so you can do powerful thinks like:
**In general, if your build logs any warnings, you should either fix them or [raise an Issue](https://github.com/executablebooks/MyST-Parser/issues/new/choose) if you think the warning is erroneous.**
119
125
120
-
However, in some circumstances if you wish to suppress the warning you can use the [`suppress_warnings`](https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-suppress_warnings) configuration option, e.g.
126
+
However, in some circumstances if you wish to suppress the warning you can use the <inv:sphinx#suppress_warnings> configuration option, e.g.
Copy file name to clipboardExpand all lines: docs/docutils.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ The commands are based on the [Docutils Front-End Tools](https://docutils.source
36
36
:::
37
37
38
38
:::{versionadded} 0.19.0
39
-
`myst-suppress-warnings` replicates the functionality of sphinx's [`suppress_warnings`](https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-suppress_warnings) for `myst.` warnings in the `docutils` CLI.
39
+
`myst-suppress-warnings` replicates the functionality of sphinx's <inv:sphinx#suppress_warnings> for `myst.` warnings in the `docutils` CLI.
40
40
:::
41
41
42
42
The CLI commands can also utilise the [`docutils.conf` configuration file](https://docutils.sourceforge.io/docs/user/config.html) to configure the behaviour of the CLI commands. For example:
Copy file name to clipboardExpand all lines: docs/faq/index.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ If you encounter any issues with this feature, please don't hesitate to report i
102
102
(howto/autodoc)=
103
103
### Use `sphinx.ext.autodoc` in Markdown files
104
104
105
-
The [Sphinx extension `autodoc`](sphinx:sphinx.ext.autodoc), which pulls in code documentation from docstrings, is currently hard-coded to parse reStructuredText.
105
+
The [Sphinx extension `autodoc`](inv:sphinx#sphinx.ext.autodoc), which pulls in code documentation from docstrings, is currently hard-coded to parse reStructuredText.
106
106
It is therefore incompatible with MyST's Markdown parser.
107
107
However, the special [`eval-rst` directive](syntax/directives/parsing) can be used to "wrap" `autodoc` directives:
108
108
@@ -142,7 +142,7 @@ See the [](syntax/header-anchors) section of extended syntaxes.
142
142
:::
143
143
144
144
If you'd like to *automatically* generate targets for each of your section headers,
145
-
check out the {external+sphinx:std:doc}`autosectionlabel <usage/extensions/autosectionlabel>`
145
+
check out the [autosectionlabel](inv:sphinx#usage/*/autosectionlabel)
146
146
sphinx feature. You can activate it in your Sphinx site by adding the following to your
147
147
`conf.py` file:
148
148
@@ -179,7 +179,7 @@ Moved to [](myst-warnings)
179
179
### Sphinx-specific page front matter
180
180
181
181
Sphinx intercepts front matter and stores them within the global environment
182
-
(as discussed in the {external+sphinx:std:doc}`sphinx documentation <usage/restructuredtext/field-lists>`.
182
+
(as discussed in the [sphinx documentation](inv:sphinx#usage/*/field-lists)).
183
183
There are certain front-matter keys (or their translations) that are also recognised specifically by docutils and parsed to inline Markdown:
184
184
185
185
-`author`
@@ -228,7 +228,7 @@ emphasis syntax will now be disabled. For example, the following will be rendere
228
228
*emphasis is now disabled*
229
229
```
230
230
231
-
For a list of all the syntax elements you can disable, see the [markdown-it parser guide](markdown_it:using).
231
+
For a list of all the syntax elements you can disable, see the [markdown-it parser guide](inv:markdown_it#using).
MyST-Parser is highly configurable, utilising the inherent "plugability" of the [markdown-it-py](markdown_it:index) parser.
23
+
MyST-Parser is highly configurable, utilising the inherent "plugability" of the [markdown-it-py](inv:markdown_it#index) parser.
24
24
The following syntaxes are optional (disabled by default) and can be enabled *via* the sphinx `conf.py` (see also [](sphinx/config-options)).
25
-
Their goal is generally to add more *Markdown friendly* syntaxes; often enabling and rendering [markdown-it-py plugins](markdown_it:md/plugins) that extend the [CommonMark specification](https://commonmark.org/).
25
+
Their goal is generally to add more *Markdown friendly* syntaxes; often enabling and rendering [markdown-it-py plugins](inv:markdown_it#md/plugins) that extend the [CommonMark specification](https://commonmark.org/).
26
26
27
27
To enable all the syntaxes explained below:
28
28
@@ -36,6 +36,7 @@ myst_enable_extensions = [
36
36
"fieldlist",
37
37
"html_admonition",
38
38
"html_image",
39
+
"inv_link",
39
40
"linkify",
40
41
"replacements",
41
42
"smartquotes",
@@ -101,7 +102,7 @@ Math is parsed by adding to the `myst_enable_extensions` list option, in the {{
101
102
-`"dollarmath"` for parsing of dollar `$` and `$$` encapsulated math.
102
103
-`"amsmath"` for direct parsing of [amsmath LaTeX environments](https://ctan.org/pkg/amsmath).
103
104
104
-
These options enable their respective Markdown parser plugins, as detailed in the [markdown-it plugin guide](markdown_it:md/plugins).
105
+
These options enable their respective Markdown parser plugins, as detailed in the [markdown-it plugin guide](inv:markdown_it#md/plugins).
105
106
106
107
:::{versionchanged} 0.13.0
107
108
`myst_dmath_enable=True` and `myst_amsmath_enable=True` are deprecated, and replaced by `myst_enable_extensions = ["dollarmath", "amsmath"]`
@@ -231,7 +232,7 @@ See [the extended syntax option](syntax/amsmath).
231
232
(syntax/mathjax)=
232
233
### Mathjax and math parsing
233
234
234
-
When building HTML using the {external+sphinx:mod}`sphinx.ext.mathjax <sphinx.ext.mathjax>` extension (enabled by default),
235
+
When building HTML using the <inv:sphinx#sphinx.ext.mathjax> extension (enabled by default),
235
236
If `dollarmath` is enabled, Myst-Parser injects the `tex2jax_ignore` (MathJax v2) and `mathjax_ignore` (MathJax v3) classes in to the top-level section of each MyST document, and adds the following default MathJax configuration:
236
237
237
238
MathJax version 2 (see [the tex2jax preprocessor](https://docs.mathjax.org/en/v2.7-latest/options/preprocessors/tex2jax.html#configure-tex2jax):
@@ -353,7 +354,7 @@ This may lead to unexpected outcomes.
353
354
354
355
:::
355
356
356
-
Substitution references are assessed as [Jinja2 expressions](http://jinja.palletsprojects.com) which can use [filters](https://jinja.palletsprojects.com/en/2.11.x/templates/#list-of-builtin-filters), and also contains the {external+sphinx:std:doc}`Sphinx Environment <extdev/envapi>` in the context (as `env`).
357
+
Substitution references are assessed as [Jinja2 expressions](http://jinja.palletsprojects.com) which can use [filters](https://jinja.palletsprojects.com/en/2.11.x/templates/#list-of-builtin-filters), and also contains the [Sphinx Environment](inv:sphinx#extdev/envapi) in the context (as `env`).
By adding `"deflist"` to `myst_enable_extensions` (in the {{ confpy }}),
542
543
you will be able to utilise definition lists.
543
-
Definition lists utilise the [markdown-it-py deflist plugin](markdown_it:md/plugins), which itself is based on the [Pandoc definition list specification](http://johnmacfarlane.net/pandoc/README.html#definition-lists).
544
+
Definition lists utilise the [markdown-it-py deflist plugin](inv:markdown_it#md/plugins), which itself is based on the [Pandoc definition list specification](http://johnmacfarlane.net/pandoc/README.html#definition-lists).
544
545
545
546
This syntax can be useful, for example, as an alternative to nested bullet-lists:
546
547
@@ -619,7 +620,7 @@ Term 3
619
620
620
621
By adding `"tasklist"` to `myst_enable_extensions` (in the {{ confpy }}),
621
622
you will be able to utilise task lists.
622
-
Task lists utilise the [markdown-it-py tasklists plugin](markdown_it:md/plugins),
623
+
Task lists utilise the [markdown-it-py tasklists plugin](inv:markdown_it#md/plugins),
623
624
and are applied to markdown list items starting with `[ ]` or `[x]`:
624
625
625
626
```markdown
@@ -691,7 +692,7 @@ based on the [reStructureText syntax](https://docutils.sourceforge.io/docs/ref/r
691
692
print("Hello, world!")
692
693
```
693
694
694
-
A prominent use case of field lists is for use in API docstrings, as used in [Sphinx's docstring renderers](sphinx:python-domain):
695
+
A prominent use case of field lists is for use in API docstrings, as used in [Sphinx's docstring renderers](inv:sphinx#python-domain):
695
696
696
697
````md
697
698
```{py:function} send_message(sender, priority)
@@ -726,16 +727,16 @@ Currently `sphinx.ext.autodoc` does not support MyST, see [](howto/autodoc).
726
727
(syntax/attributes)=
727
728
## Inline attributes
728
729
730
+
:::{versionadded} 0.19
731
+
This feature is in *beta*, and may change in future versions.
732
+
It replace the previous `attrs_image` extension, which is now deprecated.
733
+
:::
734
+
729
735
By adding `"attrs_inline"` to `myst_enable_extensions` (in the {{ confpy }}),
730
736
you can enable parsing of inline attributes after certain inline syntaxes.
731
737
This is adapted from [djot inline attributes](https://htmlpreview.github.io/?https://github.com/jgm/djot/blob/master/doc/syntax.html#inline-attributes),
732
738
and also related to [pandoc bracketed spans](https://pandoc.org/MANUAL.html#extension-bracketed_spans).
733
739
734
-
:::{important}
735
-
This feature is in *beta*, and may change in future versions.
736
-
It replace the previous `attrs_image` extension, which is now deprecated.
737
-
:::
738
-
739
740
Attributes are specified in curly braces after the inline syntax.
740
741
Inside the curly braces, the following syntax is recognised:
> {sub-ref}`today` | {sub-ref}`wordcount-words` words | {sub-ref}`wordcount-minutes` min read
423
423
424
-
`today` is replaced by either the date on which the document is parsed, with the format set by [`today_fmt`](https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-today_fmt), or the `today` variable if set in the configuration file.
424
+
`today` is replaced by either the date on which the document is parsed, with the format set by <inv:sphinx#today_fmt>, or the `today` variable if set in the configuration file.
425
425
426
426
The reading speed is computed using the `myst_words_per_minute` configuration (see the [Sphinx configuration options](sphinx/config-options)).
0 commit comments