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: docs/syntax/admonitions.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ The [alert extension](syntax/alerts) provides GitHub-style alerts as a lightweig
10
10
Admonitions are a special case of {{directive}} extensions.
11
11
It is advised to use admonitions with the [colon_fence](#syntax/colon_fence) extension, which signify that the content of the block is also MyST Markdown.
12
12
13
-
::::{myst-example}
13
+
::::{syntax-example}
14
14
15
15
:::{tip}
16
16
Let's give readers a helpful hint!
@@ -30,7 +30,7 @@ These admonitions take no argument, but may be specified with options:
30
30
:class: A space-separated list of CSS classes to add to the admonition, conforming to the [identifier normalization rules](https://docutils.sourceforge.io/docs/ref/rst/directives.html#identifier-normalization).
31
31
:name: A reference target for the admonition (see [cross-referencing](#syntax/referencing)).
32
32
33
-
::::{myst-example}
33
+
::::{syntax-example}
34
34
35
35
:::{tip}
36
36
:class: myclass1 myclass2
@@ -44,7 +44,7 @@ Let's give readers a helpful hint!
44
44
45
45
Sphinx also adds a number of additional admonition types, for denoting changes to the documentation, or to the codebase:
46
46
47
-
::::{myst-example}
47
+
::::{syntax-example}
48
48
49
49
:::{versionadded} 1.2.3
50
50
Explanation of the new feature.
@@ -66,7 +66,7 @@ To provide a custom title for an admonition, use the `admonition` directive.
66
66
If you also want to style the admonition as one of the core admonition types,
67
67
you can use the `admonition` directive with the `class` option.
68
68
69
-
::::{myst-example}
69
+
::::{syntax-example}
70
70
71
71
:::{admonition} My custom title with *Markdown*!
72
72
:class: tip
@@ -80,7 +80,7 @@ This is a custom title for a tip admonition.
80
80
81
81
The [sphinx-togglebutton](https://sphinx-togglebutton.readthedocs.io) extension allows you to create collapsible admonitions, by adding a `dropdown` class to the admonition.
82
82
83
-
::::{myst-example}
83
+
::::{syntax-example}
84
84
85
85
:::{note}
86
86
:class: dropdown
@@ -97,7 +97,7 @@ without it taking up too much space on the page.
97
97
Using the [colon_fence](#syntax/colon_fence) extension,
98
98
content block can be wrapped in containers with a custom CSS class.
99
99
100
-
::::{myst-example}
100
+
::::{syntax-example}
101
101
:::bg-primary
102
102
This is a container with a custom CSS class.
103
103
@@ -108,7 +108,7 @@ This is a container with a custom CSS class.
108
108
Using the [sphinx-design](https://github.com/executablebooks/sphinx-design) extension,
109
109
it is also possible to create beautiful, screen-size responsive web-components.
These can also be used within MyST documents, although it is recommended to use the Markdown syntax where possible, which is more portable and native to MyST.
391
391
392
-
:::{myst-example}
392
+
:::{syntax-example}
393
393
Sphinx roles:
394
394
395
395
- {ref}`syntax/referencing`, {ref}`Explicit text <syntax/referencing>`
0 commit comments