ds-markdown 0.0.14-beta.1 → 0.0.15-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/katex.css ADDED
@@ -0,0 +1 @@
1
+ @import 'katex/dist/katex.min.css';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ds-markdown",
3
3
  "private": false,
4
- "version": "0.0.14-beta.1",
4
+ "version": "0.0.15-beta.0",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "types": "./dist/cjs/index.d.ts",
7
7
  "module": "./dist/esm/index.js",
@@ -42,7 +42,7 @@
42
42
  "build": "rimraf dist && npm run build:cjs && npm run build:esm && npm run build:less",
43
43
  "build:cjs": "tsc --project tsconfig-cjs.json && echo '{ \"type\": \"commonjs\" }' > dist/cjs/package.json",
44
44
  "build:esm": "tsc --project tsconfig-esm.json",
45
- "build:less": "lessc src/style.less dist/style.css",
45
+ "build:less": "lessc src/style.less dist/style.css && lessc src/katex.less dist/katex.css",
46
46
  "lint": "eslint .",
47
47
  "preview": "vite preview",
48
48
  "release": "npm run build && node scripts/set-tag.cjs && cross-env RELEASE_MODE=true npm publish",
@@ -52,9 +52,12 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "classnames": "^2.5.1",
55
+ "katex": "^0.16.22",
55
56
  "react-markdown": "^10.1.0",
56
57
  "react-syntax-highlighter": "^15.6.1",
57
- "remark-gfm": "^4.0.1"
58
+ "rehype-katex": "^7.0.1",
59
+ "remark-gfm": "^4.0.1",
60
+ "remark-math": "^6.0.0"
58
61
  },
59
62
  "devDependencies": {
60
63
  "@antfu/eslint-config": "^4.12.0",
@@ -70,7 +73,7 @@
70
73
  "@types/react-dom": "^19.1.2",
71
74
  "@types/react-syntax-highlighter": "^15.5.13",
72
75
  "@vitejs/plugin-react": "^4.4.1",
73
- "babel-jest": "^30.0.0-beta.3",
76
+ "babel-jest": "^29.0.0",
74
77
  "cross-env": "^7.0.3",
75
78
  "eslint": "^9.25.0",
76
79
  "eslint-config-prettier": "^10.1.2",