@scribdown/markdown-renderer 0.1.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/LICENSE +21 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +3073 -0
- package/dist/index.js.map +1 -0
- package/package.json +52 -0
- package/src/styles.css +11 -0
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@scribdown/markdown-renderer",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Scribdown 的 Markdown → HTML 渲染核心(remark/rehype + 安全清洗)。",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/share-man-man/scribdown.git",
|
|
10
|
+
"directory": "packages/markdown-renderer"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./styles.css": "./src/styles.css"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"src/styles.css"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@shikijs/langs": "^3.5.0",
|
|
28
|
+
"@shikijs/themes": "^3.5.0",
|
|
29
|
+
"dompurify": "^3.2.7",
|
|
30
|
+
"mermaid": "^11.15.0",
|
|
31
|
+
"rehype-raw": "^7.0.0",
|
|
32
|
+
"rehype-sanitize": "^6.0.0",
|
|
33
|
+
"rehype-stringify": "^10.0.1",
|
|
34
|
+
"remark-gfm": "^4.0.1",
|
|
35
|
+
"remark-parse": "^11.0.0",
|
|
36
|
+
"remark-rehype": "^11.1.2",
|
|
37
|
+
"shiki": "^3.5.0",
|
|
38
|
+
"unified": "^11.0.5",
|
|
39
|
+
"@scribdown/shared": "0.1.0",
|
|
40
|
+
"@scribdown/ui-handdrawn": "0.1.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"typescript": "^5.8.3",
|
|
44
|
+
"vitest": "^3.2.4"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "tsup",
|
|
48
|
+
"test": "vitest run",
|
|
49
|
+
"lint": "eslint .",
|
|
50
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
51
|
+
}
|
|
52
|
+
}
|
package/src/styles.css
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @scribdown/markdown-renderer 的样式入口。
|
|
3
|
+
*
|
|
4
|
+
* 用法:
|
|
5
|
+
* import "@scribdown/markdown-renderer/styles.css";
|
|
6
|
+
*
|
|
7
|
+
* 物理样式文件目前由 @scribdown/ui-handdrawn 维护,
|
|
8
|
+
* 本文件通过 @import 转发,使外部用户只需依赖 markdown-renderer 单个包即可获得完整样式。
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
@import "@scribdown/ui-handdrawn/styles.css";
|