* tidy * Add title to HTML export * fix: Add compatability for documents without collab state * Add HTML download option to UI * docs * fix nodes that required document to render * Refactor to allow for styling of HTML export * div>article for easier programatic content extraction
18 lines
461 B
TypeScript
18 lines
461 B
TypeScript
import { Schema } from "prosemirror-model";
|
|
import ExtensionManager from "@shared/editor/lib/ExtensionManager";
|
|
import fullPackage from "@shared/editor/packages/full";
|
|
|
|
const extensions = new ExtensionManager(fullPackage);
|
|
|
|
export const schema = new Schema({
|
|
nodes: extensions.nodes,
|
|
marks: extensions.marks,
|
|
});
|
|
|
|
export const parser = extensions.parser({
|
|
schema,
|
|
plugins: extensions.rulePlugins,
|
|
});
|
|
|
|
export const serializer = extensions.serializer();
|