自定义对齐

Mr.Hope ... 2021-2-25 Markdown
  • Align
  • Markdown
小于 1 分钟

通过对 vuepress-plugin-container 进行额外的配置注入,你可以使用

::: center
要居中的段落
:::

::: right
要居右的段落
:::
1
2
3
4
5
6
7

来对你的段落对齐进行自定义。

# 配置




 




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

# 演示

W.I.P

vuepress-theme-hope v2 仍在制作中,API 可能会有

重大的变动。

如果你在使用过程中遇到了 bug,可以

:::: danger W.I.P
vuepress-theme-hope v2 仍在制作中,API 可能会有

::: center
重大的变动。
:::

如果你在使用过程中遇到了 bug,可以

::: right
[提一个 issue](https://github.com/vuepress-theme-hope/vuepress-theme-hope/issues)。
:::

::::
1
2
3
4
5
6
7
8
9
10
11
12
13
14