1 | cases:
|
2 | - title: CommonMark link reference
|
3 | mdast:
|
4 | type: root
|
5 | children:
|
6 | - type: definition
|
7 | identifier: 'key'
|
8 | label: 'Key'
|
9 | url: 'https://example.com'
|
10 | title: example title
|
11 | - title: CommonMark auto link
|
12 | mdast:
|
13 | type: root
|
14 | children:
|
15 | - type: paragraph
|
16 | children:
|
17 | - type: text
|
18 | value: 'Search engine: '
|
19 | - type: link
|
20 | url: https://www.google.com
|
21 | children:
|
22 | - type: text
|
23 | value: https://www.google.com
|
24 | myst: |-
|
25 | Search engine: <https://www.google.com>
|
26 | html: |-
|
27 | <p>Search engine: <a href="https://www.google.com">https://www.google.com</a></p>
|
28 | latex: |-
|
29 | Search engine: \url{https://google.com}
|
30 | - title: CommonMark inline link
|
31 | id: link
|
32 | mdast:
|
33 | type: root
|
34 | children:
|
35 | - type: paragraph
|
36 | children:
|
37 | - type: link
|
38 | url: https://www.google.com
|
39 | title: Google
|
40 | children:
|
41 | - type: text
|
42 | value: search engine
|
43 | myst: |-
|
44 | [search engine](https://www.google.com "Google")
|
45 | html: |-
|
46 | <p><a href="https://www.google.com" title="Google">search engine</a></p>
|
47 | latex: |-
|
48 | Search engine: \href{https://google.com}{search engine}
|
49 | - title: CommonMark inline image
|
50 | mdast:
|
51 | type: root
|
52 | children:
|
53 | - type: paragraph
|
54 | children:
|
55 | - type: image
|
56 | url: src
|
57 | alt: alt
|
58 | title: title
|
59 | myst: |-
|
60 | ![alt](src "title")
|
61 | html: |-
|
62 | <p>
|
63 | <img src="src" alt="alt" title="title">
|
64 | </p>
|
65 | latex: |-
|
66 | \includegraphics{src}
|