Back to Ghost

Html To Lexical

koenig/kg-html-to-lexical/README.md

6.52.1573 B
Original Source

Html To Lexical

Convert HTML strings into Lexical editor state objects

Install

npm install @tryghost/kg-html-to-lexical --save

or

npm install @tryghost/kg-html-to-lexical

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run pnpm install from the Ghost monorepo root.

Test

  • pnpm lint run just eslint
  • pnpm test run lint and tests

Copyright & License

Copyright (c) 2013-2026 Ghost Foundation - Released under the MIT license.