Custom container

Mr.Hope ... 2022-1-21 Markdown
  • Container
  • Markdown
Less than 1 minute

The theme adds tip, note, info, warning, danger and detail container.

# Config





 




module.exports = {
  themeConfig: {
    mdEnhance: {
      // this is the default option, so you can use it directly
      container: true,
    },
  },
};
1
2
3
4
5
6
7
8

# Demo

Info

Information container

Note

Note container

Tips

Tip container

Note

Warning container

Warning

Dangerous container

DETAILS

Details container

custom title

A custom information container

custom title

A custom note container

custom title

A custom tip container

custom title

A custom warning container

custom Title

A custom danger container

custom title

A custom details container

Custom info

Custom note

Custom tip

Custom warning

Custom danger

::: info
Information container
:::

::: note
Note container
:::

::: tip
Tip container
:::

::: warning
Warning container
:::

::: danger
Dangerous container
:::

::: details
Details container
:::

::: info custom title
A custom information container
:::

::: note custom title
A custom note container
:::

::: tip custom title
A custom tip container
:::

::: warning custom title
A custom warning container
:::

::: danger custom Title
A custom danger container
:::

::: details custom title
A custom details container
:::

::: info Custom info
:::

::: note Custom note
:::

::: tip Custom tip
:::

::: warning Custom warning
:::

::: danger Custom danger
:::
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
Last update: January 27, 2022 16:44
Contributors: Mr.Hope