1 | cases:
|
2 | - title: Standard markdown image
|
3 | id: image
|
4 | mdast:
|
5 | type: root
|
6 | children:
|
7 | - type: paragraph
|
8 | children:
|
9 | - type: image
|
10 | url: fun-fish.png
|
11 | alt: fishy
|
12 | myst: |-
|
13 | ![fishy](fun-fish.png)
|
14 | html: |-
|
15 | <p>
|
16 | <img src="fun-fish.png" alt="fishy">
|
17 | </p>
|
18 |
|
19 | - title: Image directive
|
20 | mdast:
|
21 | type: root
|
22 | children:
|
23 | - type: mystDirective
|
24 | name: image
|
25 | args: fun-fish.png
|
26 | options:
|
27 | alt: fishy
|
28 | class: bg-primary mb-1
|
29 | width: 200px
|
30 | align: center
|
31 | children:
|
32 | - type: image
|
33 | url: fun-fish.png
|
34 | alt: fishy
|
35 | class: bg-primary mb-1
|
36 | width: 200px
|
37 | align: center
|
38 | myst: |-
|
39 | ```{image} fun-fish.png
|
40 | :alt: fishy
|
41 | :class: bg-primary mb-1
|
42 | :width: 200px
|
43 | :align: center
|
44 | ```
|
45 | html: |-
|
46 | <img src="fun-fish.png" alt="fishy" class="align-center bg-primary mb-1" width="200px">
|
47 | latex: |-
|
48 | \includegraphics{fun-fish.png}
|
49 |
|
50 | - title: Image directive, left
|
51 | mdast:
|
52 | type: root
|
53 | children:
|
54 | - type: mystDirective
|
55 | name: image
|
56 | args: fun-fish.png
|
57 | options:
|
58 | alt: fishy
|
59 | align: left
|
60 | children:
|
61 | - type: image
|
62 | url: fun-fish.png
|
63 | alt: fishy
|
64 | align: left
|
65 | myst: |-
|
66 | ```{image} fun-fish.png
|
67 | :alt: fishy
|
68 | :align: left
|
69 | ```
|
70 | html: |-
|
71 | <img src="fun-fish.png" alt="fishy" class="align-left">
|
72 | latex: |-
|
73 | \includegraphics{fun-fish.png}
|