1.0.1 • Published 3 months ago
@zerotower/bytemd-plugin-switch-theme v1.0.1
bytemd-plugin-switch-theme
This is a plugin for bytemd editor, for achieving switch Component Viewer's theme like juejin editor.
example
import switchTheme from "@zerotower/bytemd-plugin-switch-theme"
import {Viewer} from "bytemd"
const plugins =[
...,//other plugins
switchTheme()
]
<Viewer :content="content" :plugins="plugins"/>