Skip to content

Commit 36d6f08

Browse files
committed
docs: refine Markdown Extensions Custom Containers(fix vuejs#2141)
1 parent d6771b7 commit 36d6f08

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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+
Containers can be defined by their types, titles, and contents. The default titles would be applied while customized titles were missing or empty.
125+
126+
### Apply Default Titles
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+
### Apply Customized Titles
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)