You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type for the container. For example, if `type` was set to `foo`, only the following syntax will be parsed as a container:
33
+
34
+
```md
35
+
::: foo bar
36
+
write something here ~
37
+
:::
38
+
```
39
+
40
+
### defaultTitle
41
+
42
+
- Type: `string`
43
+
- Default: the upper case of `type`
44
+
45
+
The default title for the container. If no title was provided, `defaultTitle` will be showed as the title of the container.
46
+
47
+
### before
48
+
49
+
- Type: `string | Function`
50
+
- Default: `undefined`
51
+
52
+
String to be placed before the block. If specified as a function, a argument `token` will be passed to it. If specified, it will override `defaultTitle`.
53
+
54
+
### after
55
+
56
+
- Type: `string | Function`
57
+
- Default: `undefined`
58
+
59
+
String to be placed after the block. If specified as a function, a argument `token` will be passed to it. If specified, it will override `defaultTitle`.
60
+
61
+
### validate
62
+
63
+
- Type: `Function`
64
+
- Default: `undefined`
65
+
66
+
A function to validate tail after opening marker, should return `true` on success.
67
+
68
+
### render
69
+
70
+
- Type: `Function`
71
+
- Default: `undefined`
72
+
73
+
The renderer function for opening/closing tokens. If specified, it will override `before`, `after` and `defaultTitle`.
0 commit comments