Skip to content

Commit 54b84b3

Browse files
lalawowbencodezen
andauthored
docs: refine Markdown Extensions Custom Containers(fix #2141) (#2351)
* docs: refine Markdown Extensions Custom Containers(fix #2141) * Update packages/docs/docs/guide/markdown.md Co-authored-by: Ben Hong <[email protected]> * Update packages/docs/docs/guide/markdown.md Co-authored-by: Ben Hong <[email protected]> * docs: simplify intro language for custom containers Co-authored-by: Ben Hong <[email protected]>
1 parent 0e48c84 commit 54b84b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: packages/docs/docs/guide/markdown.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ Rendering of TOC can be configured using the [`markdown.toc`](../config/README.m
121121

122122
## Custom Containers <Badge text="default theme"/>
123123

124+
Custom containers can be defined by their types, titles, and contents.
125+
126+
### Default Title
124127
**Input**
125128

126129
```md
@@ -159,7 +162,8 @@ This is a dangerous warning
159162
This is a details block, which does not work in IE / Edge
160163
:::
161164

162-
You can also customize the title of the block:
165+
### Custom Title
166+
**Input**
163167

164168
````md
165169
::: danger STOP
@@ -173,6 +177,8 @@ console.log('Hello, VuePress!')
173177
:::
174178
````
175179

180+
**Output**
181+
176182
::: danger STOP
177183
Danger zone, do not proceed
178184
:::

0 commit comments

Comments
 (0)