Annotations Material
Annotations Material
Section titled “Annotations Material”Syntax
Section titled “Syntax”| Form | Syntax | Usage |
|---|---|---|
| Paragraph | Text (1) then { .annotate } | Inline marker. |
| List | 1. Content | Bubble content. |
| Admonition | !!! note annotate "Title (1)" | Annotation inside a block. |
| Tabs | === "Tab" with (1) | Annotation inside a tab. |
| Quote | > Quote (1) | Annotation in a blockquote. |
In a paragraph
Section titled “In a paragraph”Text with an annotation. (1)
{ .annotate }
1. Annotation content.
Text with an annotation. 1Annotation content.
In an admonition
Section titled “In an admonition”!!! note annotate "Annotated title (1)"
The admonition body can also contain a marker. (2)
1. Annotation placed in the title.
2. Annotation placed in the body.
In tabs
Section titled “In tabs”=== "JavaScript"
```js
const mode = "documentation"; // (1)
```
1. This annotation belongs only to the JavaScript tab.
=== "YAML"
```yaml
mode: documentation # (1)
```
1. This annotation belongs only to the YAML tab.
const mode = "documentation"; // 1This annotation belongs only to the JavaScript tab.
mode: documentation # 1This annotation belongs only to the YAML tab.
With a quote
Section titled “With a quote”> A quote can receive an annotation to explain a source or a nuance. (1)
{ .annotate }
1. This form reuses the idea of the MkDocs Material `annotate` container.
A quote can receive an annotation to explain a source or a nuance. 1This form reuses the idea of the MkDocs Material annotate container.