mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-03 02:39:02 +08:00
17 lines
727 B
Markdown
17 lines
727 B
Markdown
# HTML
|
|
[![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)
|
|
|
|
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.
|
|
|
|
## Source code
|
|
[packages/html/](https://github.com/ueberdosis/tiptap/blob/main/packages/html/)
|
|
|
|
## Generate HTML from JSON
|
|
<tiptap-demo name="GuideContent/GenerateHTML"></tiptap-demo>
|
|
|
|
## Generate JSON from HTML
|
|
<tiptap-demo name="GuideContent/GenerateJSON"></tiptap-demo>
|