2021-01-26 07:57:47 +08:00
|
|
|
# HTML
|
2021-02-05 00:33:59 +08:00
|
|
|
[![Version](https://img.shields.io/npm/v/@tiptap/html.svg?label=version)](https://www.npmjs.com/package/@tiptap/html)
|
|
|
|
[![Downloads](https://img.shields.io/npm/dm/@tiptap/html.svg)](https://npmcharts.com/compare/@tiptap/html?minimal=true)
|
|
|
|
|
2021-05-06 05:10:45 +08:00
|
|
|
The utility helps rendering JSON content as HTML, and generating JSON from HTML, without an editor instance, for example on the server side.
|
|
|
|
|
|
|
|
All it needs is JSON or a HTML string, and a list of extensions.
|
2021-01-26 07:57:47 +08:00
|
|
|
|
|
|
|
## Source code
|
2021-04-21 21:31:11 +08:00
|
|
|
[packages/html/](https://github.com/ueberdosis/tiptap/blob/main/packages/html/)
|
2021-01-26 07:57:47 +08:00
|
|
|
|
2021-05-06 05:10:45 +08:00
|
|
|
## Generate HTML from JSON
|
2021-10-19 00:01:47 +08:00
|
|
|
https://embed.tiptap.dev/preview/GuideContent/GenerateHTML
|
2021-05-06 03:24:24 +08:00
|
|
|
|
2021-05-06 05:10:45 +08:00
|
|
|
## Generate JSON from HTML
|
2021-10-19 00:01:47 +08:00
|
|
|
https://embed.tiptap.dev/preview/GuideContent/GenerateJSON
|