rename HTML function names

This commit is contained in:
Hans Pagel
2020-10-28 17:20:38 +01:00
parent 4af6049792
commit 4dad818f7d
9 changed files with 21 additions and 21 deletions

View File

@@ -0,0 +1,13 @@
import { Node, DOMSerializer, Schema } from 'prosemirror-model'
// @ts-ignore
import { createHTMLDocument } from 'hostic-dom'
export default function getHTMLFromFragment(doc: Node, schema: Schema): string {
return DOMSerializer
.fromSchema(schema)
.serializeFragment(doc.content, {
document: createHTMLDocument(),
})
// @ts-ignore
.render()
}