-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
111 lines (111 loc) · 3.08 KB
/
Copy pathpackage.json
File metadata and controls
111 lines (111 loc) · 3.08 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"name": "@xcan-cloud/markdown",
"version": "1.8.0",
"description": "Production-grade, extensible, high-performance Markdown rendering and editing component",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/xcancloud/Markdown.git"
},
"type": "module",
"scripts": {
"dev": "cd website && vite",
"build": "tsc && vite build && cp -r src/styles dist/",
"test": "vitest run",
"test:watch": "vitest",
"lint": "tsc --noEmit",
"prepublishOnly": "npm run build",
"deploy": "npm run build && npm publish",
"deploy:dry-run": "npm run build && npm publish --dry-run"
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./viewer": {
"types": "./dist/viewer.d.ts",
"import": "./dist/viewer.mjs",
"require": "./dist/viewer.cjs"
},
"./renderer": {
"types": "./dist/renderer.d.ts",
"import": "./dist/renderer.mjs",
"require": "./dist/renderer.cjs"
},
"./editor": {
"types": "./dist/editor.d.ts",
"import": "./dist/editor.mjs",
"require": "./dist/editor.cjs"
},
"./styles": "./dist/styles/index.css",
"./styles/renderer": "./dist/styles/renderer.css",
"./styles/editor": "./dist/styles/editor.css",
"./themes/*": "./dist/styles/themes/*"
},
"files": [
"dist",
"README.md",
"README.zh-CN.md",
"editor.png"
],
"sideEffects": [
"*.css"
],
"peerDependencies": {
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
"dependencies": {
"@codemirror/autocomplete": "^6.18.3",
"@codemirror/commands": "^6.7.1",
"@codemirror/lang-markdown": "^6.3.0",
"@codemirror/language": "^6.10.3",
"@codemirror/language-data": "^6.5.1",
"@codemirror/state": "^6.4.1",
"@codemirror/view": "^6.34.0",
"github-slugger": "^2.0.0",
"hast-util-to-string": "^3.0.1",
"katex": "^0.16.11",
"lucide-react": "^0.474.0",
"mdast-util-to-string": "^4.0.0",
"mermaid": "^11.4.0",
"rehype-autolink-headings": "^7.1.0",
"rehype-katex": "^7.0.1",
"rehype-raw": "^7.0.0",
"rehype-sanitize": "^6.0.0",
"rehype-slug": "^6.0.0",
"rehype-stringify": "^10.0.1",
"remark-directive": "^3.0.0",
"remark-emoji": "^4.0.1",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.0",
"remark-math": "^6.0.0",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.1",
"shiki": "^1.24.0",
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@testing-library/react": "^16.1.0",
"@types/katex": "^0.16.7",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.4",
"jsdom": "^25.0.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "^5.7.2",
"vite": "^6.0.3",
"vite-plugin-dts": "^4.3.0",
"vitest": "^2.1.8"
}
}