Koenig Default Nodes
Lexical node definitions for the default nodes used in Ghost's Koenig editor
Install
npm install @tryghost/kg-default-nodes --save
or
npm install @tryghost/kg-default-nodes
Usage
Develop
This is a monorepo package.
Follow the instructions for the top-level repo.
git clonethis repo &cdinto it as usual- Run
pnpm installfrom the Ghost monorepo root.
Test
pnpm lintrun just eslintpnpm testrun lint and tests
Running in Ghost Admin
In order to run local changes, perform the following:
This package is part of the Ghost monorepo workspace — ghost/core resolves
it via workspace: automatically, so local changes are picked up with no
linking. Run pnpm dev in this package for a rebuild-on-change watcher.
kg-lexical-html-renderer must also be linked when linking this package as they are codependencies.
Copyright & License
Copyright (c) 2013-2026 Ghost Foundation - Released under the MIT license.