diff --git a/package.json b/package.json
index e00ee8307..dcbd24531 100644
--- a/package.json
+++ b/package.json
@@ -75,6 +75,7 @@
"jquery": "^3.5.1",
"jquery-ui-dist": "^1.12.1",
"lodash-es": "^4.17.21",
+ "lru-cache": "^10.2.0",
"marked": "^5.1.0",
"mathjax": "^3.1.2"
},
diff --git a/ts/editable/Mathjax.svelte b/ts/editable/Mathjax.svelte
index f61250559..5fe48a4db 100644
--- a/ts/editable/Mathjax.svelte
+++ b/ts/editable/Mathjax.svelte
@@ -4,6 +4,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->