samemark 0.0.0-stage → 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/CHANGELOG.md +13 -0
- package/KNOWN_GAPS.md +84 -0
- package/LICENSE +21 -0
- package/README.md +676 -2
- package/core.d.ts +10 -0
- package/core.js +10 -0
- package/dist/LICENSES.txt +217 -0
- package/dist/core.cjs +7178 -0
- package/dist/stream.cjs +6967 -0
- package/examples/react-chat/StreamMarkdown.jsx +67 -0
- package/index.d.ts +10 -0
- package/index.js +14 -0
- package/lib/api.js +155 -0
- package/lib/probe.js +109 -0
- package/lib/rows.js +47 -0
- package/lib/signature.js +77 -0
- package/lib/types.d.ts +46 -0
- package/lib/verify.js +38 -0
- package/package.json +140 -4
- package/src/block.js +1807 -0
- package/src/inline.js +1597 -0
- package/src/stream.js +178 -0
- package/stream.d.ts +26 -0
- package/stream.js +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,142 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "samemark",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "The same mdast as remark-parse, much faster: a markdown parser that matches mdast-util-from-markdown with GFM and falls back to it for anything else.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Anzal Abidi",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/anzal1/samemark.git"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"markdown",
|
|
14
|
+
"mdast",
|
|
15
|
+
"remark",
|
|
16
|
+
"unified",
|
|
17
|
+
"parser",
|
|
18
|
+
"gfm",
|
|
19
|
+
"commonmark",
|
|
20
|
+
"micromark",
|
|
21
|
+
"fast"
|
|
22
|
+
],
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18"
|
|
26
|
+
},
|
|
27
|
+
"main": "./index.js",
|
|
28
|
+
"types": "./index.d.ts",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./index.d.ts",
|
|
32
|
+
"import": "./index.js"
|
|
33
|
+
},
|
|
34
|
+
"./core": {
|
|
35
|
+
"types": "./core.d.ts",
|
|
36
|
+
"import": "./core.js",
|
|
37
|
+
"require": "./dist/core.cjs"
|
|
38
|
+
},
|
|
39
|
+
"./package.json": "./package.json",
|
|
40
|
+
"./stream": {
|
|
41
|
+
"types": "./stream.d.ts",
|
|
42
|
+
"import": "./stream.js",
|
|
43
|
+
"require": "./dist/stream.cjs"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"index.js",
|
|
48
|
+
"core.js",
|
|
49
|
+
"index.d.ts",
|
|
50
|
+
"core.d.ts",
|
|
51
|
+
"stream.js",
|
|
52
|
+
"stream.d.ts",
|
|
53
|
+
"examples/",
|
|
54
|
+
"lib/",
|
|
55
|
+
"src/",
|
|
56
|
+
"dist/",
|
|
57
|
+
"LICENSE",
|
|
58
|
+
"README.md",
|
|
59
|
+
"KNOWN_GAPS.md",
|
|
60
|
+
"CHANGELOG.md"
|
|
61
|
+
],
|
|
62
|
+
"scripts": {
|
|
63
|
+
"build": "node scripts/build.mjs",
|
|
64
|
+
"prepack": "node scripts/build.mjs",
|
|
65
|
+
"test": "node --test test/*.test.mjs && node scripts/gen-signature.mjs --check && node bench/fuzz.mjs --mode=regress",
|
|
66
|
+
"test:types": "tsc -p test/types/tsconfig.json",
|
|
67
|
+
"size": "node scripts/size.mjs",
|
|
68
|
+
"check": "node bench/run.mjs --require-docs",
|
|
69
|
+
"corpus": "node bench/fetch-corpora.mjs",
|
|
70
|
+
"bench": "node bench/perf/run.mjs",
|
|
71
|
+
"bench:small": "node bench/perf/run.mjs --small",
|
|
72
|
+
"bench:stream": "node bench/perf/stream-jsdom.mjs",
|
|
73
|
+
"scaling": "node bench/scaling.mjs",
|
|
74
|
+
"charts": "node scripts/charts.mjs",
|
|
75
|
+
"site": "node site/build.mjs",
|
|
76
|
+
"fuzz": "node bench/fuzz.mjs"
|
|
77
|
+
},
|
|
78
|
+
"peerDependencies": {
|
|
79
|
+
"mdast-util-from-markdown": "^2.0.0",
|
|
80
|
+
"unified": "^11.0.0"
|
|
81
|
+
},
|
|
82
|
+
"peerDependenciesMeta": {
|
|
83
|
+
"mdast-util-from-markdown": {
|
|
84
|
+
"optional": true
|
|
85
|
+
},
|
|
86
|
+
"unified": {
|
|
87
|
+
"optional": true
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"@types/mdast": "^4.0.4",
|
|
92
|
+
"ccount": "2.0.1",
|
|
93
|
+
"decode-named-character-reference": "1.3.0",
|
|
94
|
+
"micromark-util-decode-numeric-character-reference": "2.0.2",
|
|
95
|
+
"micromark-util-decode-string": "2.0.1",
|
|
96
|
+
"micromark-util-html-tag-name": "2.0.1",
|
|
97
|
+
"micromark-util-normalize-identifier": "2.0.1"
|
|
98
|
+
},
|
|
99
|
+
"devDependencies": {
|
|
100
|
+
"@edge-runtime/vm": "5.0.0",
|
|
101
|
+
"@mdx-js/mdx": "3.1.1",
|
|
102
|
+
"@types/hast": "3.0.5",
|
|
103
|
+
"@types/markdown-it": "14.2.0",
|
|
104
|
+
"@types/node": "26.6.5",
|
|
105
|
+
"@types/react": "19.3.0",
|
|
106
|
+
"commonmark-spec": "0.31.2",
|
|
107
|
+
"esbuild": "0.28.2",
|
|
108
|
+
"hast-util-to-jsx-runtime": "2.3.6",
|
|
109
|
+
"html-url-attributes": "3.0.1",
|
|
110
|
+
"jsdom": "30.1.2",
|
|
111
|
+
"markdown-it": "15.0.2",
|
|
112
|
+
"marked": "18.1.0",
|
|
113
|
+
"mdast-util-from-markdown": "2.1.0",
|
|
114
|
+
"mdast-util-frontmatter": "2.0.1",
|
|
115
|
+
"mdast-util-gfm": "3.1.0",
|
|
116
|
+
"mdast-util-math": "3.0.0",
|
|
117
|
+
"mdast-util-to-hast": "13.2.1",
|
|
118
|
+
"micromark-extension-frontmatter": "2.0.0",
|
|
119
|
+
"micromark-extension-gfm": "3.0.0",
|
|
120
|
+
"micromark-extension-math": "3.1.0",
|
|
121
|
+
"react": "19.3.0",
|
|
122
|
+
"react-dom": "19.3.0",
|
|
123
|
+
"react-markdown": "10.1.0",
|
|
124
|
+
"rehype-stringify": "10.0.1",
|
|
125
|
+
"remark-breaks": "4.0.0",
|
|
126
|
+
"remark-directive": "4.0.0",
|
|
127
|
+
"remark-frontmatter": "5.0.0",
|
|
128
|
+
"remark-gfm": "4.0.1",
|
|
129
|
+
"remark-math": "6.0.0",
|
|
130
|
+
"remark-mdx": "3.1.1",
|
|
131
|
+
"remark-parse": "11.0.0",
|
|
132
|
+
"remark-rehype": "11.1.2",
|
|
133
|
+
"remark-smartypants": "3.0.3",
|
|
134
|
+
"remark-stringify": "11.0.0",
|
|
135
|
+
"typescript": "7.0.2",
|
|
136
|
+
"unified": "11.0.5"
|
|
137
|
+
},
|
|
138
|
+
"homepage": "https://github.com/anzal1/samemark#readme",
|
|
139
|
+
"bugs": {
|
|
140
|
+
"url": "https://github.com/anzal1/samemark/issues"
|
|
141
|
+
}
|
|
142
|
+
}
|