6.0.8 • Published 3 years ago

@itoa/fields-markdown v6.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Markdown

This is the last active development release of this package as Itoa 5 is now in a 6 to 12 month active maintenance phase. For more information please read our Itoa 5 and beyond post.

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 itoa fields package and needs to be installed:

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

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

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

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

Credit

The Editor implementation is based on SquidDev/MirrorMark.