From 730cf5f54e7d6d09a2c42e167396df94efab4ae2 Mon Sep 17 00:00:00 2001 From: mgreminger Date: Fri, 19 Jan 2024 23:52:54 -0600 Subject: [PATCH] feat: latex export --- src/App.svelte | 2 +- src/DownloadDocumentModal.svelte | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index 795d62d6..24c6bd9d 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1738,7 +1738,7 @@ Please include a link to this sheet in the email to assist in debugging the prob return markdown; } - async function getDocument(docType: "docx" | "pdf" | "md", getShareableLink = false) { + async function getDocument(docType: "docx" | "pdf" | "md" | "tex", getShareableLink = false) { const markDown = "\n" + await getMarkdown(getShareableLink); const upload_blob = new Blob([markDown], {type: "text/markdown"}); diff --git a/src/DownloadDocumentModal.svelte b/src/DownloadDocumentModal.svelte index 8aa69bee..3f8969eb 100644 --- a/src/DownloadDocumentModal.svelte +++ b/src/DownloadDocumentModal.svelte @@ -5,11 +5,11 @@ export let open = true; const dispatch = createEventDispatcher<{ - downloadDocument: {docType: "docx" | "pdf" | "md", getShareableLink: boolean}; + downloadDocument: {docType: "docx" | "pdf" | "md" | "tex", getShareableLink: boolean}; downloadSheet: null; }>(); - let docType: "epxyz" | "docx" | "pdf" | "md" = "epxyz"; + let docType: "epxyz" | "docx" | "pdf" | "md" | "tex" = "epxyz"; let getShareableLink = false; async function handleSave() { @@ -56,11 +56,12 @@ +
Shareable Link