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

@@ -1,10 +1,10 @@
import { Extensions, getSchema } from '@tiptap/core'
import { Node } from 'prosemirror-model'
import getHtmlFromFragment from './getHtmlFromFragment'
import getHTMLFromFragment from './getHTMLFromFragment'
export function generateHtml(doc: object, extensions: Extensions): string {
export function generateHTML(doc: object, extensions: Extensions): string {
const schema = getSchema(extensions)
const contentNode = Node.fromJSON(schema, doc)
return getHtmlFromFragment(contentNode, schema)
return getHTMLFromFragment(contentNode, schema)
}