Skip to content

Commit f5a3372

Browse files
committed
upgrade
1 parent 2aaf2c6 commit f5a3372

File tree

8 files changed

+127
-276
lines changed

8 files changed

+127
-276
lines changed

.github/workflows/build.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: build
22
on:
33
- push
44

5-
env:
6-
NODE_OPTIONS: --openssl-legacy-provider
7-
85
jobs:
96
release:
107
# needs: test

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
![logo](https://github.com/righ/react-ipynb-renderer/raw/master/images/logo.png)
2+
13
[![NPM](https://nodei.co/npm/react-ipynb-renderer.png?mini=true)](https://www.npmjs.com/package/react-ipynb-renderer)
24
[![NPM](https://nodei.co/npm/react-ipynb-renderer-katex.png?mini=true)](https://www.npmjs.com/package/react-ipynb-renderer-katex)
35

katex/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@storybook/react-webpack5": "^8.0.0",
5252
"@storybook/test": "^8.0.0",
5353
"@types/dompurify": "^2.4.0",
54-
"@types/katex": "^0.11.1",
54+
"@types/katex": "^0.16.7",
5555
"@types/node": "^15.12.1",
5656
"@types/react": "^16.9.49",
5757
"@typescript-eslint/eslint-plugin": "^4.14.2",
@@ -72,7 +72,7 @@
7272
"require-context.macro": "^1.2.2",
7373
"storybook": "^8.0.0",
7474
"ts-loader": "8.2.0",
75-
"typescript": "^4.0.3",
75+
"typescript": "^5.4.2",
7676
"typescript-declaration-webpack-plugin": "^0.2.2",
7777
"webpack-bundle-analyzer": "^4.4.2",
7878
"webpack-cli": "^4.7.0"

katex/yarn.lock

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3325,12 +3325,7 @@
33253325
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad"
33263326
integrity sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA==
33273327

3328-
"@types/katex@^0.11.1":
3329-
version "0.11.1"
3330-
resolved "https://registry.yarnpkg.com/@types/katex/-/katex-0.11.1.tgz#34de04477dcf79e2ef6c8d23b41a3d81f9ebeaf5"
3331-
integrity sha512-DUlIj2nk0YnJdlWgsFuVKcX27MLW0KbKmGVoUHmFr+74FYYNUDAaj9ZqTADvsbE8rfxuVmSFc7KczYn5Y09ozg==
3332-
3333-
"@types/katex@^0.16.0":
3328+
"@types/katex@^0.16.0", "@types/katex@^0.16.7":
33343329
version "0.16.7"
33353330
resolved "https://registry.yarnpkg.com/@types/katex/-/katex-0.16.7.tgz#03ab680ab4fa4fbc6cb46ecf987ecad5d8019868"
33363331
integrity sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ==
@@ -10178,6 +10173,7 @@ stringify-entities@^4.0.0:
1017810173
character-entities-legacy "^3.0.0"
1017910174

1018010175
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.1:
10176+
name strip-ansi-cjs
1018110177
version "6.0.1"
1018210178
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
1018310179
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -10575,10 +10571,10 @@ typescript-declaration-webpack-plugin@^0.2.2:
1057510571
resolved "https://registry.yarnpkg.com/typescript-declaration-webpack-plugin/-/typescript-declaration-webpack-plugin-0.2.2.tgz#e924fac2acdaa8ad244fd94f3132fa811177c4eb"
1057610572
integrity sha512-X+97Ahsq13mlIxg9ECseRFi/TtOu2w55wdqijPT63gpe75zhthwqsdKNcf1CdgFDHWefIIGmR/qpAVRf6dl6WQ==
1057710573

10578-
typescript@^4.0.3:
10579-
version "4.3.2"
10580-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805"
10581-
integrity sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw==
10574+
typescript@^5.4.2:
10575+
version "5.4.2"
10576+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.2.tgz#0ae9cebcfae970718474fe0da2c090cad6577372"
10577+
integrity sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==
1058210578

1058310579
ufo@^1.4.0:
1058410580
version "1.5.0"

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@storybook/react-webpack5": "^8.0.0",
5555
"@storybook/test": "^8.0.0",
5656
"@types/dompurify": "^2.4.0",
57-
"@types/katex": "^0.11.1",
57+
"@types/katex": "^0.16.7",
5858
"@types/node": "^15.12.1",
5959
"@types/react": "^16.9.49",
6060
"@types/react-syntax-highlighter": "^15.5.5",
@@ -68,22 +68,23 @@
6868
"eslint-plugin-storybook": "^0.8.0",
6969
"file-loader": "^6.2.0",
7070
"json-loader": "^0.5.7",
71-
"katex": "^0.13.18",
71+
"katex": "^0.16.9",
7272
"less": "^4.1.1",
7373
"less-loader": "7.3.0",
7474
"less-plugin-clean-css": "^1.5.1",
7575
"prettier": "2.2.1",
7676
"react": ">=16.9.0",
7777
"react-dom": ">=16.9.0",
7878
"react-is": "^16.13.1",
79-
"rehype-katex": "^6.0.2",
79+
"rehype-katex": "^7.0.0",
8080
"require-context.macro": "^1.2.2",
8181
"storybook": "^8.0.0",
8282
"ts-loader": "8.2.0",
83-
"typescript": "^4.0.3",
83+
"typescript": "^5.4.2",
8484
"typescript-declaration-webpack-plugin": "^0.2.2",
85+
"webpack": "^5.90.3",
8586
"webpack-bundle-analyzer": "^4.4.2",
86-
"webpack-cli": "^4.7.0",
87+
"webpack-cli": "^5.1.4",
8788
"yarn-audit-fix": "^9.3.6"
8889
},
8990
"peerDependencies": {

src/components/MarkdownForMathjax.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from "react";
22
import ReactMarkdown from "react-markdown";
33
import { default as defaultRemarkMath, Options as RemarkMathOptions } from 'remark-math';
4+
// @ts-expect-error
45
import rehypeMathJax from 'rehype-mathjax';
56
import remarkGfm from 'remark-gfm';
67
import rehypeRaw from "rehype-raw";

webpack.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ module.exports = {
55
mode: "production",
66
resolve: {
77
extensions: [".js", ".ts", ".tsx"],
8+
alias: {
9+
// https://github.com/facebook/react/issues/20235
10+
// https://github.com/facebook/create-react-app/issues/11769
11+
"react/jsx-dev-runtime": "react/jsx-dev-runtime.js",
12+
"react/jsx-runtime": "react/jsx-runtime.js",
13+
},
814
},
915
externals: {
1016
react: "commonjs react",
@@ -30,11 +36,6 @@ module.exports = {
3036
use: ["ts-loader?configFile=tsconfig.json"],
3137
exclude: [/node_modules/, /.examples/],
3238
},
33-
{
34-
test: /\.(woff|woff2|eot|ttf|svg)$/,
35-
loader: "file-loader?name=./font/[name].[ext]",
36-
exclude: [/.examples/],
37-
},
3839
],
3940
},
4041
};

0 commit comments

Comments
 (0)