How to use it specifically, can you elaborate?
Converting HTML
The easiest way to convert HTML to mobiledoc is to generate a Ghost JSON file with html
fields containing your content for each post instead of mobiledoc
. You can then use Ghost’s standalone migration tool to convert the html
field to a mobiledoc
field.
- Requires Node.js v10 installed locally
-
npm install @tryghost/migrate -g
- install the migration tooling -
migrate json html /path/to/your/import.json
- will convert the HTML fields in your JSON file - The tool will output a path to a converted JSON file - use this to import your content
- Run
npm uninstall @tryghost/migrate -g
to cleanup
This should work well for most semantic HTML, and result in a series of populated cards in the editor, making it easy to update your content in future.