GFM alert
Less than 1 minute
The theme adds GFM alerts support.
Settings
TS
import { defineUserConfig } from "vuepress";
import { hopeTheme } from "vuepress-theme-hope";
export default defineUserConfig({
theme: hopeTheme({
plugins: {
mdEnhance: {
// enable GFM alert
alert: true,
},
},
}),
});
JS
import { hopeTheme } from "vuepress-theme-hope";
export default {
theme: hopeTheme({
plugins: {
mdEnhance: {
// enable GFM alert
alert: true,
},
},
}),
};
Demo
Note
This is note text
Important
This is important text
Tips
This is tip text
Warning
This is warning text
Caution
This is caution text
> [!note]
> This is note text
> [!important]
> This is important text
> [!tip]
> This is tip text
> [!warning]
> This is warning text
> [!caution]
> This is caution text