Skip to content
KeystoneJS LogoKeystoneJS


This field inserts a string path into your schema based on the Text field type implementation, and renders a Markdown editor using CodeMirror.


This package isn't included with the keystone fields package and needs to be installed:

yarn add @keystonejs/fields-markdown
# or
npm install @keystonejs/fields-markdown

Then import it, and use it like any other field:

const { Markdown } = require('@keystonejs/fields-markdown');

keystone.createList('Post', {
  fields: {
    content: {
      type: Markdown,


The Editor implementation is based on SquidDev/MirrorMark.

On this page

  • Usage
  • Credit
Edit on GitHub