Spoiler
Less than 1 minute
Hide spoiler contents in your VuePress site.
Settings
import { defineUserConfig } from "vuepress";
import { hopeTheme } from "vuepress-theme-hope";
export default defineUserConfig({
theme: hopeTheme({
markdown: {
spoiler: true,
},
}),
});
Syntax
Use !! !!
to mark a content as spoiler.
Demo
VuePress Theme Hope is powerful.
VuePress Theme Hope is !!powerful!!.