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,5 +1,6 @@
|
||||
import { Transaction } from "sequelize";
|
||||
import { Event, Document, User } from "@server/models";
|
||||
import DocumentHelper from "@server/models/helpers/DocumentHelper";
|
||||
|
||||
type Props = {
|
||||
/** The user updating the document */
|
||||
@@ -62,7 +63,7 @@ export default async function documentUpdater({
|
||||
}
|
||||
if (text !== undefined) {
|
||||
if (user.team?.collaborativeEditing) {
|
||||
document.updateFromMarkdown(text, append);
|
||||
document = DocumentHelper.applyMarkdownToDocument(document, text, append);
|
||||
} else if (append) {
|
||||
document.text += text;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user