Custom alignment

Mr.Hope ... 2021-2-25 Markdown
  • Align
  • Markdown
Less than 1 minute

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

Warning

vuepress-theme-hope v2 is still in W.I.P, the API may have

Significant changes.

If you meet a bug during usage, you can

:::: danger
vuepress-theme-hope v2 is still in W.I.P, the API may have

::: center
Significant changes.
:::

If you meet a bug during usage, you can

::: right
[Mention an issue](https://github.com/vuepress-theme-hope/vuepress-theme-hope-v1/issues).
:::
::::
1
2
3
4
5
6
7
8
9
10
11
12
13
Last update: June 2, 2022 05:43
Contributors: Mr.Hope , Mr.Hope