satorigear 0.0.2 → 0.0.4
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/README.md +22 -21
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +1047 -1300
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -46,6 +46,7 @@ const parser = createParser({
|
|
|
46
46
|
math: true,
|
|
47
47
|
strikethrough: true,
|
|
48
48
|
table: true,
|
|
49
|
+
taskList: true,
|
|
49
50
|
},
|
|
50
51
|
});
|
|
51
52
|
|
|
@@ -67,7 +68,7 @@ Benchmarked against Sätteri and Remark, which also produce MDAST, with feature
|
|
|
67
68
|
|
|
68
69
|
<!-- benchmark:start environment -->
|
|
69
70
|
|
|
70
|
-
> Median of 5 isolated mean-time runs at commit [`
|
|
71
|
+
> Median of 5 isolated mean-time runs at commit [`deacb94`](https://github.com/KazariEX/satorigear/commit/deacb94abb22839aa84f32374cf348cfa27332e1) on Apple M3, node 26.5.0, arm64-darwin. SatoriGear and Sätteri run in paired AB/BA order; comparisons are normalized to SatoriGear (↑ faster, ↓ slower). Lower time and higher throughput are better.
|
|
71
72
|
|
|
72
73
|
<!-- benchmark:end -->
|
|
73
74
|
|
|
@@ -82,17 +83,17 @@ Benchmarked against Sätteri and Remark, which also produce MDAST, with feature
|
|
|
82
83
|
|
|
83
84
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
84
85
|
| --- | ---: | ---: | ---: |
|
|
85
|
-
| **SatoriGear** | 2.
|
|
86
|
-
| Sätteri | 1.
|
|
87
|
-
| Remark | 62.
|
|
86
|
+
| **SatoriGear** | 2.32 ms | baseline | 84.2 MiB/s |
|
|
87
|
+
| Sätteri | 1.12 ms | ↑ 2.07× | 174 MiB/s |
|
|
88
|
+
| Remark | 62.8 ms | ↓ 26.86× | 3.11 MiB/s |
|
|
88
89
|
|
|
89
90
|
##### CommonMark 0.31.2 examples, 14919 bytes, 652 documents
|
|
90
91
|
|
|
91
92
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
92
93
|
| --- | ---: | ---: | ---: |
|
|
93
|
-
| **SatoriGear** | 1.
|
|
94
|
-
| Sätteri | 2.
|
|
95
|
-
| Remark | 26.
|
|
94
|
+
| **SatoriGear** | 1.03 ms | baseline | 13.9 MiB/s |
|
|
95
|
+
| Sätteri | 2.71 ms | ↓ 2.64× | 5.25 MiB/s |
|
|
96
|
+
| Remark | 26.6 ms | ↓ 25.96× | 0.53 MiB/s |
|
|
96
97
|
|
|
97
98
|
#### Built-in features
|
|
98
99
|
|
|
@@ -100,15 +101,15 @@ Benchmarked against Sätteri and Remark, which also produce MDAST, with feature
|
|
|
100
101
|
|
|
101
102
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
102
103
|
| --- | ---: | ---: | ---: |
|
|
103
|
-
| **SatoriGear** |
|
|
104
|
-
| Sätteri | 26.
|
|
104
|
+
| **SatoriGear** | 21.9 ms | baseline | 39.6 MiB/s |
|
|
105
|
+
| Sätteri | 26.7 ms | ↓ 1.22× | 32.5 MiB/s |
|
|
105
106
|
|
|
106
107
|
##### Public APIs README, 232580 bytes, 1 document
|
|
107
108
|
|
|
108
109
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
109
110
|
| --- | ---: | ---: | ---: |
|
|
110
|
-
| **SatoriGear** |
|
|
111
|
-
| Sätteri | 2.
|
|
111
|
+
| **SatoriGear** | 5.49 ms | baseline | 40.4 MiB/s |
|
|
112
|
+
| Sätteri | 2.40 ms | ↑ 2.28× | 92.4 MiB/s |
|
|
112
113
|
|
|
113
114
|
</details>
|
|
114
115
|
|
|
@@ -125,17 +126,17 @@ Benchmarked against Sätteri and Remark, which also produce MDAST, with feature
|
|
|
125
126
|
|
|
126
127
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
127
128
|
| --- | ---: | ---: | ---: |
|
|
128
|
-
| **SatoriGear** | 2.
|
|
129
|
-
| Sätteri | 5.
|
|
130
|
-
| Remark |
|
|
129
|
+
| **SatoriGear** | 2.34 ms | baseline | 83.4 MiB/s |
|
|
130
|
+
| Sätteri | 5.47 ms | ↓ 2.33× | 35.7 MiB/s |
|
|
131
|
+
| Remark | 59.9 ms | ↓ 25.53× | 3.27 MiB/s |
|
|
131
132
|
|
|
132
133
|
##### CommonMark 0.31.2 examples, 14919 bytes, 652 documents
|
|
133
134
|
|
|
134
135
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
135
136
|
| --- | ---: | ---: | ---: |
|
|
136
|
-
| **SatoriGear** | 1.
|
|
137
|
-
| Sätteri | 5.
|
|
138
|
-
| Remark | 26.3 ms | ↓
|
|
137
|
+
| **SatoriGear** | 1.05 ms | baseline | 13.6 MiB/s |
|
|
138
|
+
| Sätteri | 5.92 ms | ↓ 5.57× | 2.41 MiB/s |
|
|
139
|
+
| Remark | 26.3 ms | ↓ 25.07× | 0.54 MiB/s |
|
|
139
140
|
|
|
140
141
|
#### Built-in features
|
|
141
142
|
|
|
@@ -143,15 +144,15 @@ Benchmarked against Sätteri and Remark, which also produce MDAST, with feature
|
|
|
143
144
|
|
|
144
145
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
145
146
|
| --- | ---: | ---: | ---: |
|
|
146
|
-
| **SatoriGear** |
|
|
147
|
-
| Sätteri | 79.
|
|
147
|
+
| **SatoriGear** | 22.1 ms | baseline | 39.2 MiB/s |
|
|
148
|
+
| Sätteri | 79.5 ms | ↓ 3.59× | 10.9 MiB/s |
|
|
148
149
|
|
|
149
150
|
##### Public APIs README, 232580 bytes, 1 document
|
|
150
151
|
|
|
151
152
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
152
153
|
| --- | ---: | ---: | ---: |
|
|
153
|
-
| **SatoriGear** |
|
|
154
|
-
| Sätteri |
|
|
154
|
+
| **SatoriGear** | 5.76 ms | baseline | 38.5 MiB/s |
|
|
155
|
+
| Sätteri | 21.0 ms | ↓ 3.63× | 10.6 MiB/s |
|
|
155
156
|
|
|
156
157
|
</details>
|
|
157
158
|
|
package/dist/index.d.mts
CHANGED
|
@@ -63,6 +63,7 @@ interface FeatureOptions {
|
|
|
63
63
|
math?: boolean | MathOptions;
|
|
64
64
|
strikethrough?: boolean | StrikethroughOptions;
|
|
65
65
|
table?: boolean;
|
|
66
|
+
taskList?: boolean;
|
|
66
67
|
}
|
|
67
68
|
//#endregion
|
|
68
69
|
//#region src/parser.d.ts
|
|
@@ -108,6 +109,7 @@ declare module "mdast" {
|
|
|
108
109
|
}
|
|
109
110
|
interface RootContentMap {
|
|
110
111
|
blockComponent: BlockComponent;
|
|
112
|
+
inlineComponent: InlineComponent;
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
115
|
//#endregion
|