Spoiler
Hide spoiler contents in your VitePress site.
Setting
ts
import { defineConfig } from 'vitepress-theme-niansi'
export default defineConfig({
markdown: {
plugins: {
spoiler: true
}
}
})Syntax
Use !! !! to mark the spoiler content. Note that there should be a space on both sides.
Example
This is spoiler text.
Demo
md
This is !!spoiler!! text.Changelog
2026-04-18 23:33
View All Changelog