feat: Add HTML export option (#4056)
* 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
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { Schema } from "prosemirror-model";
|
||||
import ExtensionManager from "@shared/editor/lib/ExtensionManager";
|
||||
import fullPackage from "@shared/editor/packages/full";
|
||||
import render from "./renderToHtml";
|
||||
|
||||
const extensions = new ExtensionManager(fullPackage);
|
||||
|
||||
@@ -16,6 +15,3 @@ export const parser = extensions.parser({
|
||||
});
|
||||
|
||||
export const serializer = extensions.serializer();
|
||||
|
||||
export const renderToHtml = (markdown: string): string =>
|
||||
render(markdown, extensions.rulePlugins);
|
||||
|
||||
Reference in New Issue
Block a user