summaryrefslogtreecommitdiffstats
path: root/tests/test_sphinx/sourcedirs/substitutions/index.md
blob: e1dd672a9d4a1d5daefe03d0b3107ac32810bde2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
myst:
  substitutions:
    text: "- text"
    text_with_nest: >
      output
      with *Markdown*
      {{ nested }}
    nested: nested substitution
    admonition: |
      prefix

      ```{note}
      A note {{ nested }}
      ```
    inline_admonition: |
      ```{note}
      Inline note
      ```
    override: Overridden by front matter

---

{{ text_with_nest }}

{{ admonition }}

a {{ text }} b

c {{ text_with_nest }} d

e {{ inline_admonition }} f

{{ conf }}

{{ override }}

This will process the substitution

```{parsed-literal}
{{ text_with_nest }}
```

This will not process the substitution

```python
{{ text_with_nest }}
```

Using env and filters:

{{ env.docname | upper }}

```{toctree}
other.md
```