From c6c428bbbca8a6c095c63620ec139e500ed67141 Mon Sep 17 00:00:00 2001 From: Erik Demaine Date: Mon, 11 Dec 2023 10:40:23 -0500 Subject: [PATCH] Upgrade svg2pdf.js to fix PDF export with MathJax's null s --- CHANGELOG.md | 5 +++++ package.json | 2 +- settings.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ba55fd..061ebd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ To see every change with descriptions aimed at developers, see As a continuously updated web app, Cocreate uses dates instead of version numbers. +## 2023-12-11 + +* Fix PDF export with certain mathematical expressions, e.g., + `$\log_2 n$`. + ## 2023-11-24 * Light/dark mode now initializes to the user's preference according to the diff --git a/package.json b/package.json index 3190799..426bce5 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "solid-bootstrap": "1.0.8", "solid-js": "1.4.7", "solid-meteor-data": "0.6.1", - "svg2pdf.js": "2.2.1", + "svg2pdf.js": "2.2.3", "tex2svg-webworker": "0.6.0" }, "devDependencies": { diff --git a/settings.json b/settings.json index 0fbc1bf..fdf3bbc 100644 --- a/settings.json +++ b/settings.json @@ -2,7 +2,7 @@ "public": { "cors-anywhere": "https://coproxy.csail.mit.edu:8080/", "jspdf": "https://cdn.skypack.dev/pin/jspdf@v2.5.1-DfIA8JrqayYcZ574rjTZ/mode=imports,min/optimized/jspdf.js", - "svg2pdf.js": "https://cdn.skypack.dev/pin/svg2pdf.js@v2.2.1-E39EA3q6JjbAU0rSktv0/mode=imports,min/optimized/svg2pdfjs.js", + "svg2pdf.js": "https://cdn.skypack.dev/pin/svg2pdf.js@v2.2.3-I1MU7CCUIDYhq0i6zbtA/mode=imports,min/optimized/svg2pdfjs.js", "tex2svg": "https://cdn.jsdelivr.net/npm/tex2svg-webworker@0.6.0/dist/tex2svg.js" } }