Shopify + Sanity: Read about the investment and partnership –>

Markdown input

Official(made by Sanity team)
v3 Ready

By Rune Botten & Espen Hovlandsdal

Markdown input component and schema type. Supports image uploads.

sanity-plugin-markdown

A Markdown editor with preview for Sanity Studio. Supports Github flavored markdown and image uploads. 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

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

demo

License

MIT © Sanity.io See LICENSE

Studio Version

This plugin is available for Studio v3 and Studio v2.What are studio versions and which do I choose?

Contributors

Other plugins by authors

Mux input

v3 Ready

Upload videos to Mux directly from the studio.

Go to Mux input

Google Maps input

Official(made by Sanity team)
v3 Ready

Use geo-related input types using Google Maps.

Espen Hovlandsdal
Go to Google Maps input

PortableText to React
- has 7 likes

Official(made by Sanity team)

Render PortableText content in React

Espen Hovlandsdal
Go to PortableText to React