Acknowledgements
This project draws inspiration and reference from several excellent open-source projects during its development. Here are the main sources:
This project draws inspiration and reference from several excellent open-source projects during its development. Here are the main sources:
import { defineConfig } from 'vitepress-theme-niansi'
export default defineConfig({
markdown: {
plugins: {
align: true
}
}
})
The theme provides you preview support.
import { defineConfig } from 'vitepress-theme-niansi'
export default defineConfig({
markdown: {
plugins: {
preview: true
}
}
})
Adds image size syntax, lazy loading, and figure wrapping support for images in your VitePress site.
import { defineConfig } from 'vitepress-theme-niansi'
export default defineConfig({
markdown: {
// Lazy loading (optional)
image: {
lazyLoading: true
},
plugins: {
// Enable image plugin
image: true
// Or pass options
// image: { lazyLoading: true, focusable: false, linkImage: false }
}
}
})
A unified inline syntax factory plugin for creating custom punctuation-based inline tags.
import { defineConfig, inlineRule } from 'vitepress-theme-niansi'
export default defineConfig({
markdown: {
config(md) {
md.use(inlineRule, {
marker: "~",
tag: "sub",
token: "sub",
})
}
}
})
Make your Markdown files in your VitePress site support mark.
import { defineConfig } from 'vitepress-theme-niansi'
export default defineConfig({
markdown: {
plugins: {
mark: true
}
}
})
Hide spoiler contents in your VitePress site.
import { defineConfig } from 'vitepress-theme-niansi'
export default defineConfig({
markdown: {
plugins: {
spoiler: true
}
}
})
import { defineConfig } from 'vitepress-theme-niansi'
export default defineConfig({
markdown: {
plugins: {
// Enable Subscript
sub: true,
// Enable Superscript
sup: true
}
}
})
Let the Markdown file in your VitePress site support task list.
import { defineConfig } from 'vitepress-theme-niansi'
export default defineConfig({
markdown: {
plugins: {
tasklist: true
}
}
})