@koikorn/fields-markdown

5.2.1 • Public • Published

Markdown

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

Usage

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

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

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

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

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

Credit

The Editor implementation is based on SquidDev/MirrorMark.

Readme

Keywords

none

Package Sidebar

Install

npm i @koikorn/fields-markdown

Weekly Downloads

10

Version

5.2.1

License

MIT

Unpacked Size

90.3 kB

Total Files

12

Last publish

Collaborators

  • lorenhaim