ds-markdown 0.0.14 → 0.0.15-beta.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ds-markdown",
3
3
  "private": false,
4
- "version": "0.0.14",
4
+ "version": "0.0.15-beta.1",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "types": "./dist/cjs/index.d.ts",
7
7
  "module": "./dist/esm/index.js",
@@ -31,6 +31,11 @@
31
31
  "import": "./dist/style.css",
32
32
  "require": "./dist/style.css",
33
33
  "default": "./dist/style.css"
34
+ },
35
+ "./katex.css": {
36
+ "import": "./dist/katex.css",
37
+ "require": "./dist/katex.css",
38
+ "default": "./dist/katex.css"
34
39
  }
35
40
  },
36
41
  "files": [
@@ -42,7 +47,7 @@
42
47
  "build": "rimraf dist && npm run build:cjs && npm run build:esm && npm run build:less",
43
48
  "build:cjs": "tsc --project tsconfig-cjs.json && echo '{ \"type\": \"commonjs\" }' > dist/cjs/package.json",
44
49
  "build:esm": "tsc --project tsconfig-esm.json",
45
- "build:less": "lessc src/style.less dist/style.css",
50
+ "build:less": "lessc src/style.less dist/style.css && lessc src/katex.less dist/katex.css",
46
51
  "lint": "eslint .",
47
52
  "preview": "vite preview",
48
53
  "release": "npm run build && node scripts/set-tag.cjs && cross-env RELEASE_MODE=true npm publish",
@@ -52,9 +57,12 @@
52
57
  },
53
58
  "dependencies": {
54
59
  "classnames": "^2.5.1",
60
+ "katex": "^0.16.22",
55
61
  "react-markdown": "^10.1.0",
56
62
  "react-syntax-highlighter": "^15.6.1",
57
- "remark-gfm": "^4.0.1"
63
+ "rehype-katex": "^7.0.1",
64
+ "remark-gfm": "^4.0.1",
65
+ "remark-math": "^6.0.0"
58
66
  },
59
67
  "devDependencies": {
60
68
  "@antfu/eslint-config": "^4.12.0",
@@ -70,7 +78,7 @@
70
78
  "@types/react-dom": "^19.1.2",
71
79
  "@types/react-syntax-highlighter": "^15.5.13",
72
80
  "@vitejs/plugin-react": "^4.4.1",
73
- "babel-jest": "^30.0.0-beta.3",
81
+ "babel-jest": "^29.0.0",
74
82
  "cross-env": "^7.0.3",
75
83
  "eslint": "^9.25.0",
76
84
  "eslint-config-prettier": "^10.1.2",
@@ -112,6 +120,6 @@
112
120
  "react-markdown"
113
121
  ],
114
122
  "publishConfig": {
115
- "tag": "latest"
123
+ "tag": "beta"
116
124
  }
117
125
  }