add hostic-dom
This commit is contained in:
@@ -2,7 +2,7 @@ import { Extensions, getSchema } from '@tiptap/core'
|
||||
import { Node } from 'prosemirror-model'
|
||||
import getHtmlFromFragment from './getHtmlFromFragment'
|
||||
|
||||
export default 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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user