0.0.22 • Published 3 months ago

@tryghost/mg-html-lexical v0.0.22

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

Migrate HTML -> Lexical

A little wrapper tool for migrating all HTML fields of posts to Lexical

Install

npm install @tryghost/mg-html-lexical --save

or

yarn add @tryghost/mg-html-lexical

Usage

  var mgHtmlLexical = require('tryghost/mg-html-lexical');
  var convertedData = mgHtmlLexical.convert(myData);

Data structure passed in can be either

let myData = {
    logger: yourLoggingInstance,
    posts: [
        {
            html: '<h2>Good stuff here</h2>'
        }
    ]
}

or

let myData = {
    logger: yourLoggingInstance,
    data: {
        posts: [
            {
                html: '<h2>Good stuff here</h2>'
            }
        ]
    }
}

Develop

This is a mono repository, managed with lerna.

Follow the instructions for the top-level repo. 1. git clone this repo & cd into it as usual 2. Run yarn to install top-level dependencies.

Run

  • yarn dev

Test

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

Copyright & License

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

0.0.22

3 months ago

0.0.21

4 months ago

0.0.20

4 months ago

0.0.18

4 months ago

0.0.19

4 months ago

0.0.17

5 months ago

0.0.16

5 months ago

0.0.15

8 months ago

0.0.13

10 months ago

0.0.14

9 months ago

0.0.11

1 year ago

0.0.12

11 months ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

2 years ago

0.0.2

2 years ago