summaryrefslogtreecommitdiffstats
path: root/tests/fixtures/myst_role.md
blob: 4b2c248796357bec2607ba94236a997c5e585d03 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
Basic:
.
{abc}`xyz`
.
<p><code class="myst role">{abc}[xyz]</code></p>
.

Multiple:
.
{abc}`xyz`{def}`uvw`
.
<p><code class="myst role">{abc}[xyz]</code><code class="myst role">{def}[uvw]</code></p>
.

Surrounding Text:
.
a {abc}`xyz` b
.
<p>a <code class="myst role">{abc}[xyz]</code> b</p>
.

New lines:
.
{abc}`xy
z` `d
e`
.
<p><code class="myst role">{abc}[xy z]</code> <code>d e</code></p>
.

In Code:
.
`` {abc}`xyz` ``
.
<p><code>{abc}`xyz`</code></p>
.

Empty content:
.
{name}`` a
.
<p>{name}`` a</p>
.

Surrounding Code:
.
`a` {abc}`xyz` `b`
.
<p><code>a</code> <code class="myst role">{abc}[xyz]</code> <code>b</code></p>
.

In list:
.
- {abc}`xyz`
.
<ul>
<li><code class="myst role">{abc}[xyz]</code></li>
</ul>
.

In Quote:
.
> {abc}`xyz` b
.
<blockquote>
<p><code class="myst role">{abc}[xyz]</code> b</p>
</blockquote>
.

Multiple ticks:
.
{abc}``xyz``
.
<p><code class="myst role">{abc}[xyz]</code></p>
.

Inner tick:
.
{abc}``x`yz``
.
<p><code class="myst role">{abc}[x`yz]</code></p>
.

Unbalanced ticks:
.
{abc}``xyz`
.
<p>{abc}``xyz`</p>
.

Space in name:
.
{ab c}`xyz`
.
<p>{ab c}<code>xyz</code></p>
.

Escaped:
.
\{abc}`xyz`
.
<p>{abc}<code>xyz</code></p>
.