diff --git a/package.json b/package.json index 095a3bb..8915f15 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "file-saver": "^2.0.5", "i18next": "^23.8.2", "i18next-browser-languagedetector": "^7.2.0", + "katex": "^0.16.9", "localforage": "^1.10.0", "node-fetch": "^2.7.0", "pyodide": "^0.23.4", @@ -25,14 +26,14 @@ "react-router-dom": "^6.21.3", "react-scripts": "5.0.1", "react-syntax-highlighter": "^15.5.0", + "redux": "^5.0.1", "redux-persist": "^6.0.0", "rehype-katex": "^7.0.0", "rehype-raw": "^7.0.0", "remark-gfm": "^4.0.0", "remark-math": "^6.0.0", "remarkable": "^2.0.1", - "superb": "^4.0.0", - "typescript": "^4.9.5" + "superb": "^4.0.0" }, "scripts": { "start": "cross-env BROWSER=none GENERATE_SOURCEMAP=false react-scripts start", @@ -61,8 +62,10 @@ "@types/react-dom": "^18.2.18", "@types/react-syntax-highlighter": "^15.5.11", "@types/remarkable": "^2.0.8", + "@types/unist": "^3.0.2", "cross-env": "^7.0.3", "tailwindcss": "^3.4.1", - "tailwindcss-animated": "^1.0.1" + "tailwindcss-animated": "^1.0.1", + "typescript": "^4.9.5" } } diff --git a/src/components/Markdown.tsx b/src/components/Markdown.tsx index ecf352c..b2cb19b 100644 --- a/src/components/Markdown.tsx +++ b/src/components/Markdown.tsx @@ -10,7 +10,7 @@ import { a11yDark as style } from "react-syntax-highlighter/dist/esm/styles/pris import userThrottle from "../helpers/userThrottle"; import { useEffect, useState } from "react"; import userDebounce from "../helpers/userDebounce"; -import { Point } from "unist"; +import type { Point } from "unist"; import { isObjectEqual } from "../helpers/isObjectEqual"; import { getPythonResult } from "../helpers/getPythonResult"; import { PyodideInterface } from "pyodide";