sanity-plugin-milkdown
v1.0.0
Published
A Markdown editor with preview support by milkdown for Sanity Studio
Downloads
11
Maintainers
Readme
sanity-plugin-milkdown
What is it
A Markdown editor for Sanity Studio with preview supported by Milkdown which was a alternatives to official plugin sanity-plugin-markdown
Installation
npm install sanity-plugin-milkdown --save
or
pnpm add sanity-plugin-milkdown
Usage
Add it as a plugin in sanity.config.ts
(or .js):
import {defineConfig} from 'sanity'
import {markdownSchema} from 'sanity-plugin-milkdown'
export default defineConfig({
//...
plugins: [markdownSchema({})],
})
Demo
License
MIT © enpitsulin
Develop & test
This plugin uses @sanity/plugin-kit with default configuration for build & watch scripts.
See Testing a plugin in Sanity Studio on how to run this plugin with hotreload in the studio.