-
Notifications
You must be signed in to change notification settings - Fork 683
Expand file tree
/
Copy pathCustomMarkdownEmitter.test.ts.snap
More file actions
84 lines (42 loc) · 1.17 KB
/
CustomMarkdownEmitter.test.ts.snap
File metadata and controls
84 lines (42 loc) · 1.17 KB
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
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`render Markdown from TSDoc 1`] = `
"
## Simple bold test
This is a **bold** word.
## All whitespace bold
## Newline bold
**line 1** **line 2**
## Newline bold with spaces
**line 1** **line 2** **line 3**
## Adjacent bold regions
**one**<!-- -->**two** **three** **four**<!-- -->non-bold<!-- -->**five**
## Adjacent to other characters
[a link](./index.md)<!-- -->**bold**<!-- -->non-boldmore-non-bold
## Unknown block tag
**bold**<!-- -->non-boldmore-non-bold
## Bad characters
**\\\\*one\\\\*two\\\\***<!-- -->**three\\\\*four**
## Characters that should be escaped
Double-encoded JSON: \\"{ \\\\\\\\\\"A\\\\\\\\\\": 123}\\"
HTML chars: <script>alert(\\"\\\\[You\\\\] are \\\\#1!\\");</script>
HTML escape: &quot;
3 or more hyphens: - -- \\\\-\\\\-\\\\- \\\\-\\\\-\\\\-- \\\\-\\\\-\\\\--- \\\\-\\\\-\\\\-\\\\-\\\\-\\\\-
## HTML tag
<b>bold</b>
## Table
<table><thead><tr><th>
Header 1
</th><th>
Header 2
</th></tr></thead>
<tbody><tr><td>
Cell 1
</td><td>
Cell 2
**bold text**
</td></tr>
</tbody></table>
## After a table
just checking lines after a table
"
`;