-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmdx.code-snippets
99 lines (99 loc) · 2.03 KB
/
mdx.code-snippets
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
{
"Tabs": {
"scope": "markdown,mdx,jsx",
"prefix": "tabs",
"body": [
"",
"<Tabs>",
"<Tab label=\"${1:First tab title}\" isDefault>",
"",
"${TM_SELECTED_TEXT:${2:First tab content}}",
"",
"</Tab>",
"<Tab label=\"${3:Second tab title}\">",
"",
"${TM_SELECTED_TEXT:${4:Second tab content}}",
"",
"</Tab>",
"</Tabs>",
"",
"$0"
],
"description": "Wrap content in tabs"
},
"Code Folding": {
"scope": "markdown,mdx,jsx",
"prefix": "fold",
"body": [
"",
"<CodeFold>",
"",
"${TM_SELECTED_TEXT:${1:```text\n// highlight-start\ninvisible\nblock\n\n// highlight-end\n\ninvisible line // highlight-line\n\n// highlight-next-line\ninvisible next line\n\nvisible line\n```}}",
"",
"</CodeFold>",
"",
"$0"
],
"description": "Hide highlighted lines and allow the user to display them"
},
"Note": {
"scope": "markdown,mdx,jsx",
"prefix": "note",
"body": [
"",
"<Note>",
"",
"${TM_SELECTED_TEXT:${1:content}}",
"",
"</Note>",
"",
"$0"
],
"description": "Add a note"
},
"Warning": {
"scope": "markdown,mdx,jsx",
"prefix": "warning",
"body": [
"",
"<Warning>",
"",
"${TM_SELECTED_TEXT:${1:content}}",
"",
"</Warning>",
"",
"$0"
],
"description": "Add a warning"
},
"Caption": {
"scope": "markdown,mdx,jsx",
"prefix": "caption",
"body": [
"",
"<Caption text=\"${2:caption text}\">",
"",
"${TM_SELECTED_TEXT:${1:figure}}",
"",
"</Caption>",
"",
"$0"
],
"description": "Add a caption to some figure"
},
"MaxWidth": {
"scope": "markdown,mdx,jsx",
"prefix": "maxwidth",
"body": [
"",
"<MaxWidth max={$2}>",
"",
"${TM_SELECTED_TEXT:${1:content}}",
"",
"</Caption>",
"",
"$0"
],
"description": "Add a maximum width to some content"
}
}