Lexical node definitions for the default nodes used in Ghost's Koenig editor
npm install @tryghost/kg-default-nodes --save
or
yarn add @tryghost/kg-default-nodes
This is a monorepo package.
Follow the instructions for the top-level repo.
-
git clone
this repo &cd
into it as usual - Run
yarn
to install top-level dependencies.
-
yarn lint
run just eslint -
yarn test
run lint and tests
In order to run local changes, perform the following:
- Run
yarn link
withinkg-default-nodes
- Run
yarn link @tryghost/kg-default-nodes
withinghost/core
kg-lexical-html-renderer
must also be linked when linking this package as they are codependencies.
Copyright (c) 2013-2023 Ghost Foundation - Released under the MIT license.