Socket
Book a DemoInstallSign in
Socket

nickhsine-k5-fields-markdown

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nickhsine-k5-fields-markdown

KeystoneJS Markdown Field Type

latest
Source
npmnpm
Version
5.3.2
Version published
Maintainers
1
Created
Source

Markdown

This is the last active development release of this package as Keystone 5 is now in a 6 to 12 month active maintenance phase. For more information please read our Keystone 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 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,
    },
  },
});

Credit

The Editor implementation is based on SquidDev/MirrorMark.

FAQs

Package last updated on 01 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts