File: 0001-remove-mathjax-types.patch

package info (click to toggle)
ipywidgets 8.1.5-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,524 kB
  • sloc: python: 7,041; javascript: 1,764; sh: 62; makefile: 36
file content (36 lines) | stat: -rw-r--r-- 1,131 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?= <picca@debian.org>
Date: Tue, 4 Mar 2025 12:49:28 +0100
Subject: remove mathjax types

---
 packages/controls/src/utils.ts  | 2 ++
 packages/controls/tsconfig.json | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/packages/controls/src/utils.ts b/packages/controls/src/utils.ts
index 0250e11..72cfa0b 100644
--- a/packages/controls/src/utils.ts
+++ b/packages/controls/src/utils.ts
@@ -17,7 +17,9 @@ export function typeset(element: HTMLElement, text?: string): void {
   if (text !== void 0) {
     element.textContent = text;
   }
+// @ts-ignore
   if ((window as any).MathJax !== void 0) {
+  // @ts-ignore
     MathJax!.Hub!.Queue(['Typeset', MathJax.Hub, element]);
   }
 }
diff --git a/packages/controls/tsconfig.json b/packages/controls/tsconfig.json
index ea205d9..3b52136 100644
--- a/packages/controls/tsconfig.json
+++ b/packages/controls/tsconfig.json
@@ -3,7 +3,7 @@
   "compilerOptions": {
     "outDir": "lib",
     "rootDir": "src",
-    "types": ["mathjax", "node"]
+    "types": ["node"]
   },
   "include": ["src/**/*"],
   "references": [