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:
@@ -25,6 +25,7 @@ type Options = {
|
||||
|
||||
type FetchOptions = {
|
||||
download?: boolean;
|
||||
headers?: Record<string, string>;
|
||||
};
|
||||
|
||||
const fetchWithRetry = retry(fetch);
|
||||
@@ -81,6 +82,7 @@ class ApiClient {
|
||||
"cache-control": "no-cache",
|
||||
"x-editor-version": EDITOR_VERSION,
|
||||
pragma: "no-cache",
|
||||
...options?.headers,
|
||||
};
|
||||
|
||||
// for multipart forms or other non JSON requests fetch
|
||||
|
||||
Reference in New Issue
Block a user