Alignment

Less than 1 minute

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

::: center
Paragraph to center
:::

::: right
Right paragraph
:::

To customize your paragraph alignment.

Config

// .vuepress/config.ts
import { mdEnhancePlugin } from "vuepress-plugin-md-enhance";

export default {
  plugins: [
    mdEnhancePlugin({
      // Enable Align
      align: true,
    }),
  ],
};







 



Demo

Warning

VuePress Theme Hope V2 version 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 version is still in W.I.P, the API may have

::: center
Significant changes.
:::

If you meet a bug during usage, you can

::: right
[open an issue](https://github.com/vuepress-theme-hope/vuepress-theme-hope/issues).
:::
::::