UNPKG

3.12 kBYAMLView Raw
1cases:
2 - title: Invalid equation reference
3 mdast:
4 type: root
5 children:
6 - type: paragraph
7 children:
8 - type: text
9 value: 'see '
10 - type: mystRole
11 name: eq
12 value: ' matrix '
13 children:
14 - type: crossReference
15 kind: eq
16 identifier: matrix
17 label: ' matrix '
18 - type: mystDirective
19 name: figure
20 args: fig.jpg
21 options:
22 name: matrix
23 value: Cool caption!
24 children:
25 - type: container
26 kind: figure
27 identifier: matrix
28 label: matrix
29 children:
30 - type: image
31 url: fig.jpg
32 - type: caption
33 children:
34 - type: paragraph
35 children:
36 - type: text
37 value: Cool caption!
38 myst: |-
39
40 see {eq}` matrix `
41
42 ```{figure} fig.jpg
43 :name: matrix
44
45 Cool caption!
46 ```
47 html: |-
48 <p>see <span class="reference role unhandled"><code class="kind">{eq}</code><code>matrix</code></span></p>
49 <figure id="matrix" class="numbered">
50 <img src="fig.jpg">
51 <figcaption>
52 <p><span class="caption-number">Figure 1</span>Cool caption!</p>
53 </figcaption>
54 </figure>
55 - title: Default equation reference
56 mdast:
57 type: root
58 children:
59 - type: paragraph
60 children:
61 - type: text
62 value: 'see '
63 - type: mystRole
64 name: eq
65 value: matrix
66 children:
67 - type: crossReference
68 kind: eq
69 identifier: matrix
70 label: matrix
71 - type: mystDirective
72 name: math
73 options:
74 label: matrix
75 value: Ax = b
76 children:
77 - type: math
78 identifier: matrix
79 label: matrix
80 value: |-
81 Ax = b
82 myst: |-
83
84 see {eq}`matrix`
85
86 ```{math}
87 :label: matrix
88 Ax = b
89 ```
90 html: |-
91 <p>see <a href="#matrix">(1)</a></p>
92 <div id="matrix" class="math block">Ax = b</div>
93 - title: Link-style equation reference
94 mdast:
95 type: root
96 children:
97 - type: paragraph
98 children:
99 - type: text
100 value: 'see '
101 - type: link
102 url: matrix
103 children: []
104 - type: mystDirective
105 name: math
106 options:
107 label: matrix
108 value: Ax = b
109 children:
110 - type: math
111 identifier: matrix
112 label: matrix
113 value: |-
114 Ax = b
115 myst: |-
116
117 see [](matrix)
118
119 ```{math}
120 :label: matrix
121 Ax = b
122 ```
123 html: |-
124 <p>see <a href="#matrix">(1)</a></p>
125 <div id="matrix" class="math block">Ax = b</div>