From 96b5fd8cfc15c7b7f90cf153e292eb7b509ec2f4 Mon Sep 17 00:00:00 2001 From: Gamosoft Date: Mon, 6 Apr 2026 12:01:52 +0200 Subject: [PATCH] removed client-side export/added modern latex notation --- backend/export.py | 26 +++- backend/main.py | 83 +++++++++++ documentation/API.md | 43 ++++++ documentation/MATHJAX.md | 21 ++- frontend/app.js | 303 ++++++--------------------------------- frontend/index.html | 4 +- 6 files changed, 209 insertions(+), 271 deletions(-) diff --git a/backend/export.py b/backend/export.py index 1020bb3..06bdb47 100644 --- a/backend/export.py +++ b/backend/export.py @@ -348,8 +348,8 @@ def generate_export_html( - - - - - - - - - - - -
- ${renderedHTML} -
- -`; - - // Create blob and download - const blob = new Blob([htmlDocument], { type: 'text/html;charset=utf-8' }); - const url = URL.createObjectURL(blob); + // Download as blob + const blob = await response.blob(); + const blobUrl = URL.createObjectURL(blob); const a = document.createElement('a'); - a.href = url; - a.download = `${noteName}.html`; + a.href = blobUrl; + a.download = filename; document.body.appendChild(a); a.click(); // Cleanup - URL.revokeObjectURL(url); + URL.revokeObjectURL(blobUrl); document.body.removeChild(a); } catch (error) { diff --git a/frontend/index.html b/frontend/index.html index 0352301..09a9ab7 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -70,8 +70,8 @@