sanity-plugin-markdown-full
v2.2.0
Published
Markdown fields in Sanity Studio. Supports Github flavored Markdown and image uploads. And full screen
Downloads
13
Maintainers
Readme
sanity-plugin-markdown-full
A Markdown editor with preview for Sanity Studio. Supports Github flavored markdown and image uploads. Added fullscreen to toolbar. You can either drag image(s) into the editor or click the bottom bar to bring up a file selector. The inserted image(s) has a default width crop in the url which you can change to your liking with the Sanity image pipeline parameters.
Installation
sanity install markdown-full
Usage
Declare a field in your schema to be markdown
const myDocument = {
type: "document",
name: "myDocument",
fields: [
{
type: "markdown",
description: "A Github flavored markdown field with image uploading",
name: "bio"
}
]
}
Demo
License
MIT © Sanity.io See LICENSE