Custom alignment

Mr.Hope ... Markdown
  • Feature
  • Markdown
Less than 1 minute

# Custom alignment

By injecting configuration into vuepress-plugin-container, you can use

::: center
Paragraph to center
:::

::: right
Right paragraph
:::
1
2
3
4
5
6
7

To customize your paragraph alignment.

# Config




 




module.exports = {
  themeConfig: {
    mdEnhance: {
      align: true,
    },
  },
};
1
2
3
4
5
6
7

# Demo

This topic is still in production, the API may have

Significant changes.

If you meet a bug during usage, you can

This topic is still in production, the API may have

::: center
Significant changes.
:::

If you encounter a bug during use, you can

::: right
[Mention an issue](https://github.com/Mister-Hope/vuepress-theme-hope/issues).
:::
1
2
3
4
5
6
7
8
9
10
11

# Other custom containers

Info

Information container

Tips

Tip container

Note

Warning container

Warning

Dangerous container

DETAILS

Details container

custom title

A custom information 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

::: info
Information container
:::

::: tip
Tip container
:::

::: warning
Warning container
:::

::: danger
Dangerous container
:::

::: details
Details container
:::

::: info custom title
A custom information 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
:::
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
Last update: November 26, 2020 09:05