Custom alignment

Less than 1 minuteMarkdownAlignMarkdown

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 { defineUserConfig } from "vuepress";
import { hopeTheme } from "vuepress-theme-hope";

export default defineUserConfig({
  theme: hopeTheme({
    plugins: {
      mdEnhance: {
        align: true,
      },
    },
  }),
});







 
 
 



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
[open an issue](https://github.com/vuepress-theme-hope/vuepress-theme-hope/issues).
:::
::::