markdown-parity-check 0.2.27 → 0.2.29
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 +138 -30
- package/SECURITY.md +1 -1
- package/dist/src/cli.d.ts +1 -1
- package/dist/src/cli.js +7 -3
- package/dist/src/deadline.d.ts +3 -0
- package/dist/src/deadline.js +60 -0
- package/dist/src/fetch.js +36 -1
- package/dist/src/html.d.ts +2 -2
- package/dist/src/html.js +3 -3
- package/dist/src/netguard.js +4 -0
- package/dist/src/normalize.d.ts +1 -1
- package/dist/src/normalize.js +15 -5
- package/dist/src/run-worker.d.ts +22 -0
- package/dist/src/run-worker.js +22 -0
- package/dist/src/run.d.ts +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
# markdown-parity-check
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A command-line tool and TypeScript library that compares the main content of a page's HTML and Markdown versions. The report lists blocks that are missing, added or changed, and numbers and links that differ, each with its source location. It can request both versions of one URL or read two local files.
|
|
4
4
|
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
The [hosted Markdown parity check](https://turva.dev/markdown-parity-check) runs this comparison on turva.dev. It currently checks the published pages of turva.dev only, and the page states that limit in its opening paragraph and again at the address field. An address on any other site is refused with a message that points to the command-line tool below. Fill in an example puts turva.dev's own tools page in the address field, and Check runs the comparison as a separate step.
|
|
5
|
+
## Install
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
The package needs **Node.js 22 or newer**. It is MIT licensed. GitHub Actions tests Node.js 22 and 24 on Windows and Ubuntu.
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
Run it without installing anything:
|
|
12
10
|
|
|
13
11
|
```sh
|
|
14
12
|
npx --yes markdown-parity-check --url https://example.com/page
|
|
15
13
|
```
|
|
16
14
|
|
|
15
|
+
Install the CLI globally, or add it to a project as a library:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm install -g markdown-parity-check
|
|
19
|
+
npm install markdown-parity-check
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Try it in the browser
|
|
23
|
+
|
|
24
|
+
The [hosted Markdown parity check](https://turva.dev/markdown-parity-check) runs this comparison on turva.dev. It currently checks published turva.dev pages only, except the two tool pages, and the page states that limit in its first two paragraphs and again at the address field. An address on any other site is refused with a message that points to the command-line tool.
|
|
25
|
+
|
|
26
|
+
The Fill in an example button puts turva.dev's own tools page in the address field, and the Check button runs the comparison as a separate step.
|
|
27
|
+
|
|
28
|
+
## Check your own site
|
|
29
|
+
|
|
17
30
|
Replace the address with your page. The tool requests it twice, with `Accept: text/html` and with `Accept: text/markdown`. If the Markdown has its own address, add `--markdown-url`:
|
|
18
31
|
|
|
19
32
|
```sh
|
|
@@ -32,7 +45,7 @@ To compare two local files, pass both and a base URL for their relative links:
|
|
|
32
45
|
npx --yes markdown-parity-check --html-file page.html --markdown-file page.md --base-url https://example.com/page
|
|
33
46
|
```
|
|
34
47
|
|
|
35
|
-
|
|
48
|
+
### Exit codes
|
|
36
49
|
|
|
37
50
|
| Code | Meaning |
|
|
38
51
|
| --- | --- |
|
|
@@ -42,7 +55,7 @@ npx --yes markdown-parity-check --html-file page.html --markdown-file page.md --
|
|
|
42
55
|
|
|
43
56
|
Exit code 0 means the implemented checks found nothing to reject. It does not prove that the two versions mean the same thing.
|
|
44
57
|
|
|
45
|
-
|
|
58
|
+
### Options
|
|
46
59
|
|
|
47
60
|
| Option | Purpose |
|
|
48
61
|
| --- | --- |
|
|
@@ -56,21 +69,75 @@ Exit code 0 means the implemented checks found nothing to reject. It does not pr
|
|
|
56
69
|
| `--format text` or `--format json` | Print a readable report, which is the default, or a structured one. |
|
|
57
70
|
| `--output PATH` | Write the report to a file. An input file is never overwritten. |
|
|
58
71
|
| `--strict` | Treat warnings as rejecting findings. |
|
|
59
|
-
| `--timeout-ms MS` | Deadline
|
|
72
|
+
| `--timeout-ms MS` | Deadline for each request and for the parsing and comparison step. The default is 15 000 ms, and a run that passes it stops with exit code 2. The value must be a positive decimal integer no greater than 2147483647. |
|
|
60
73
|
| `--max-bytes N` | Limit on decoded bytes per response. The default is 5 MiB. The value must be a positive decimal integer no greater than 9007199254740991. |
|
|
61
|
-
| `--help`,
|
|
74
|
+
| `--help`, `-h` | Print the help. |
|
|
75
|
+
| `--version`, `-V` | Print the version. |
|
|
62
76
|
|
|
63
77
|
A value that is outside these ranges, or that is not a plain run of digits, stops the run with exit code 2 and an error message.
|
|
64
78
|
|
|
79
|
+
### Example output
|
|
80
|
+
|
|
81
|
+
This is the text report for the matching fixture pair in this repository, run with version 0.2.29 on 2026-10-23. The exact command is in the Development section below. The text report ends with a list of limitations, which is omitted here:
|
|
82
|
+
|
|
83
|
+
```text
|
|
84
|
+
markdown-parity-check 0.2.29 (offline mode)
|
|
85
|
+
Result: PASS (0 error(s), 0 warning(s), 1 info)
|
|
86
|
+
|
|
87
|
+
HTML: test/fixtures/same/page.html (file, 1,017 bytes, base https://example.com/page)
|
|
88
|
+
Markdown: test/fixtures/same/page.md (file, 514 bytes, base https://example.com/page)
|
|
89
|
+
Extraction: HTML via main (high confidence), 9 block(s); Markdown 9 block(s).
|
|
90
|
+
note: Front matter (3 lines) was stripped as requested (--front-matter strip).
|
|
91
|
+
Coverage: 9/9 HTML block(s) aligned (100 %), 9/9 Markdown block(s) aligned (100 %).
|
|
92
|
+
|
|
93
|
+
Findings (1):
|
|
94
|
+
1. [info] MARKDOWN_FRONT_MATTER_STRIPPED: Lines 1-3 were stripped as front matter (--front-matter strip) and not compared.
|
|
95
|
+
Markdown line 1 "title: Agent readiness audit"
|
|
96
|
+
```
|
|
97
|
+
|
|
65
98
|
## What is compared
|
|
66
99
|
|
|
67
|
-
|
|
100
|
+
### The HTML container
|
|
101
|
+
|
|
102
|
+
Without `--selector`, the tool looks for a visible `main`, then a visible `article`, then a visible `[role=main]`, and uses the first match of the first kind that has one.
|
|
103
|
+
|
|
104
|
+
- A candidate is visible when neither it nor an ancestor is hidden, in a template or inside one of the left-out subtrees listed below, so an `article` inside a `nav` is not used.
|
|
105
|
+
- A `form` is the one exception, so a `main` inside a `form` that has no left-out role is still used, however far up the form sits.
|
|
106
|
+
- If none of them exists, the page body is used and the report warns that page chrome may leak in.
|
|
107
|
+
- Two visible elements of the same kind that do not contain one another also give a warning, because only the first is compared.
|
|
108
|
+
|
|
109
|
+
Front matter is kept by default and compared as content. If the HTML does not carry the same text, that alone fails the comparison. The tool also warns when the Markdown starts with a block that looks like YAML front matter, and `--front-matter strip` removes it.
|
|
110
|
+
|
|
111
|
+
### Blocks and severities
|
|
112
|
+
|
|
113
|
+
Headings, paragraphs, list items, tables, code blocks and links are compared block by block. Content marked `hidden` or `aria-hidden="true"` is left out on both sides, also when a raw HTML wrapper such as `<div hidden>` is opened in one Markdown block and closed in a later one. A table caption counts as a paragraph before the table.
|
|
68
114
|
|
|
69
|
-
|
|
115
|
+
- Errors: missing and added blocks, a change in text or numbers, a changed table or link, and a list item that shows another number or a different checked or unchecked state.
|
|
116
|
+
- Warnings: a checkbox that is present on one side only, a difference in order, which is also reported for a block that moved and changed only in case, punctuation or typographic characters, and a difference in heading level, case, punctuation, list kind or nesting level. Each footnote in the Markdown is a warning, because footnotes are not compared. These are the main cases, and the `code` of each finding names the exact rule. A missing or extra copy of a repeated block is reported as a missing or added block, which is an error.
|
|
117
|
+
- Information: each skipped comparison, which does not fail a check, not even with `--strict`.
|
|
70
118
|
|
|
71
|
-
|
|
119
|
+
The cell-by-cell comparison of a table is skipped when one of its cells has a rowspan or colspan above 1, a rowspan of 0, or a value that is empty or does not begin with a number. The number is read from the value's leading digits, so `2abc` counts as 2. A colspan of 0 and a rowspan or colspan of 1 do not trigger it. The links and the caption of such a table are still compared. The numbering of a reversed list is not compared either.
|
|
72
120
|
|
|
73
|
-
|
|
121
|
+
### Content that is left out
|
|
122
|
+
|
|
123
|
+
Some content is left out even when it sits inside the main content, in code blocks too. These are the subtrees of:
|
|
124
|
+
|
|
125
|
+
- `form`, `button`, `input`, `select`, `textarea`, `dialog`, `iframe`, `svg`, `canvas`, `object`, `embed` and `map`.
|
|
126
|
+
- `nav`, `script`, `style`, `noscript` and `template`.
|
|
127
|
+
- Any element with the role `navigation`, `banner`, `contentinfo`, `complementary`, `search`, `menu`, `menubar` or `dialog`.
|
|
128
|
+
- A `header` or `footer` that sits directly under `body` or `html`, unless it is the content container itself.
|
|
129
|
+
|
|
130
|
+
The `starlight` profile keeps an iframe that has a source and a title, as a link. The same list applies to inline raw HTML in the Markdown and to the checkbox of a task list item, which must belong to the item itself.
|
|
131
|
+
|
|
132
|
+
A left-out tag in a Markdown paragraph, such as a `<button>` or a `<script>`, is skipped through its matching closing tag in the same paragraph. One with no closing tag is reported as a warning and its text is compared as visible. The void tags `input` and `embed` need no closing tag and are skipped on their own. A self-closing `<svg/>` counts as closed by itself, as in HTML, and `<button/>` does not.
|
|
133
|
+
|
|
134
|
+
A `<br>` in a code block is a line break. A code block that differs only in whitespace is a warning, where whitespace means the ASCII whitespace characters and the Unicode space separators such as the no-break space. Any other difference in code, an invisible character such as a soft hyphen included, is an error. An image is compared by its alt text only, not by its address, so two different images with the same alt text compare equal.
|
|
135
|
+
|
|
136
|
+
### Delivery in URL mode
|
|
137
|
+
|
|
138
|
+
In URL mode the Markdown response is checked first. An HTTP error or an HTML page in place of Markdown fails the check, and nothing is compared. A Markdown response labelled `text/plain` is a warning, and any other content type than `text/markdown` or `text/x-markdown` is an error. If the HTML request itself returns an HTTP error, the run ends with exit code 2.
|
|
139
|
+
|
|
140
|
+
### Limits of the method
|
|
74
141
|
|
|
75
142
|
JavaScript is not executed. Content that a page builds in the browser is compared as the server sent it. Block matching is heuristic, so some layouts need an explicit selector. Reports mask URL query values and fragments and remove any user name or password from a URL. Excerpts may still contain private page content. Review a report before you share it.
|
|
76
143
|
|
|
@@ -80,7 +147,7 @@ Both use the comparison core of this package. They differ in which pages they re
|
|
|
80
147
|
|
|
81
148
|
| Topic | Command-line tool | Hosted page |
|
|
82
149
|
| --- | --- | --- |
|
|
83
|
-
| Pages | Any public HTTP or HTTPS address, or two local files. | Published turva.dev pages only. |
|
|
150
|
+
| Pages | Any public HTTP or HTTPS address, or two local files. | Published turva.dev pages only, except the two tool pages, this one and the llms.txt validator. |
|
|
84
151
|
| Fetching | Network requests from your machine. Non-public addresses are refused, also behind DNS and redirects. | The turva.dev Worker renders both versions itself, so a check sends no request over the network. |
|
|
85
152
|
| Response size | 5 MiB per response by default, adjustable with `--max-bytes`. | HTML up to 512 KiB. Markdown up to 128 KiB. |
|
|
86
153
|
| Comparison size | Up to 4 000 000 block pairs. | Up to 250 000 block pairs. |
|
|
@@ -88,35 +155,72 @@ Both use the comparison core of this package. They differ in which pages they re
|
|
|
88
155
|
|
|
89
156
|
The hosted page also answers a JSON POST, described on the page. It runs the release of this package pinned in [turva-worker](https://github.com/erekola/turva-worker), which can be older than the latest npm release. The report's `toolVersion` field shows which release produced it.
|
|
90
157
|
|
|
91
|
-
Some limits are not in the table
|
|
158
|
+
Some limits are not in the table:
|
|
159
|
+
|
|
160
|
+
- A URL that contains a user name or password is refused even when its host is public, and the same holds for a redirect target.
|
|
161
|
+
- The tool sends `Accept-Encoding: gzip, deflate, br` and decodes responses with no Content-Encoding, `identity`, `gzip`, `x-gzip`, `deflate` or `br`. A response with any other Content-Encoding, `zstd` for example, is rejected, and the run ends with exit code 2.
|
|
162
|
+
- The command-line tool follows at most 5 redirects.
|
|
163
|
+
- When elements are nested more than 1024 levels deep, in the HTML page, in a raw HTML block written inside the Markdown or in the Markdown's own structure, the extraction stops with exit code 2.
|
|
164
|
+
- The matching stops the same way when more than 1 000 000 similar block pairs would have to be considered. The library `limits` default to the same two values.
|
|
165
|
+
- The hosted page uses lower nesting and matching limits: 512 levels and 50 000 similar block pairs.
|
|
92
166
|
|
|
93
|
-
A hosted check can fail on turva.dev's own pages as well. On 2026-09-11 the check of https://turva.dev/tools returned `fail` with five errors. The Markdown carries a Related heading and four links that the HTML page
|
|
167
|
+
A hosted check can fail on turva.dev's own pages as well. On 2026-09-11 the check of https://turva.dev/tools returned `fail` with five errors. The Markdown carries a Related heading and four links that the HTML page leaves out, and the report listed each of them. The same four targets are links inside that page's tool cards, so the report found a missing structure and not missing content. The page passed again on 2026-10-02. [HTML and Markdown can disagree](https://turva.dev/blog/html-and-markdown-can-disagree) reads that result in full.
|
|
94
168
|
|
|
95
|
-
##
|
|
169
|
+
## Use from Node and TypeScript
|
|
96
170
|
|
|
97
|
-
The package
|
|
171
|
+
The package is an ES module written in TypeScript and ships its type declarations. The library entry exports the comparison without the command-line interface, the file reader or the network code. It imports no Node.js built-in modules, which is how the hosted page bundles it into a Cloudflare Worker.
|
|
98
172
|
|
|
99
|
-
```
|
|
173
|
+
```ts
|
|
100
174
|
import { run, renderJson } from 'markdown-parity-check';
|
|
175
|
+
import type { Report, SourceInput } from 'markdown-parity-check';
|
|
101
176
|
|
|
102
177
|
// htmlText and markdownText are the two documents you already fetched or read.
|
|
178
|
+
declare const htmlText: string;
|
|
179
|
+
declare const markdownText: string;
|
|
180
|
+
|
|
103
181
|
const base = 'https://example.com/page';
|
|
104
|
-
const source = (file, body) => ({
|
|
182
|
+
const source = (file: string, body: string): SourceInput => ({
|
|
105
183
|
meta: { kind: 'file', file, bytes: new TextEncoder().encode(body).length, baseUrl: base },
|
|
106
184
|
body,
|
|
107
185
|
base,
|
|
108
186
|
});
|
|
109
187
|
|
|
110
|
-
const report = run(source('page.html', htmlText), source('page.md', markdownText), {
|
|
188
|
+
const report: Report = run(source('page.html', htmlText), source('page.md', markdownText), {
|
|
189
|
+
strict: false,
|
|
190
|
+
mode: 'offline',
|
|
191
|
+
});
|
|
111
192
|
console.log(report.summary.result, report.summary.exitCode);
|
|
112
193
|
console.log(renderJson(report));
|
|
113
194
|
```
|
|
114
195
|
|
|
115
|
-
`run(html, markdown, options)` returns the
|
|
196
|
+
`run(html, markdown, options)` returns the `Report` object. `renderJson(report)` prints it the way `--format json` does, with URL query values, fragments and credentials masked. The object `run` returns is not masked. A completed run has the result `pass` with exit code 0 or `fail` with exit code 1. When the comparison cannot finish, for example because the content is empty or a limit is exceeded, `run` throws a `RunError`. `errorReport` builds the error report the command prints in that case.
|
|
197
|
+
|
|
198
|
+
The options type is `RunOptions`. It takes `selector`, `frontMatter`, `strict`, `mode` and `htmlProfile`, which is `generic` or `starlight`. The Starlight rules are described in [docs/starlight.md](https://github.com/erekola/markdown-parity-check/blob/main/docs/starlight.md). The report records `mode` as `url` or `offline`, and it does not switch any check on or off.
|
|
116
199
|
|
|
117
|
-
|
|
200
|
+
When the Markdown source has `kind: 'url'` in its `meta`, the delivery check runs first and reads the HTTP `status` and `contentType` from that `meta`.
|
|
118
201
|
|
|
119
|
-
|
|
202
|
+
A host with a smaller CPU or memory budget can pass lower `limits`, typed as `RunLimits`: `maxAlignmentPairs`, `maxSimilarityCandidates`, `maxSimilarityWork` and `maxNestingDepth`. The nesting limit also applies to raw HTML blocks inside the Markdown.
|
|
203
|
+
|
|
204
|
+
The caller fetches the pages and decides which addresses are allowed. The address policy the command applies is exported as `assertPublicHost` and `isPublicAddress`.
|
|
205
|
+
|
|
206
|
+
### Report format
|
|
207
|
+
|
|
208
|
+
The JSON report is the `Report` type. Its main fields are:
|
|
209
|
+
|
|
210
|
+
| Field | Content |
|
|
211
|
+
| --- | --- |
|
|
212
|
+
| `schemaVersion` | The number `1`. |
|
|
213
|
+
| `toolVersion` | The release that produced the report. |
|
|
214
|
+
| `mode` | `url` or `offline`. |
|
|
215
|
+
| `sources` | The metadata of the HTML and the Markdown input. |
|
|
216
|
+
| `extraction` | How each side was extracted. It is `null` in an error report and in a result that failed at the delivery check, because no extraction result is reported then. |
|
|
217
|
+
| `summary` | `result`, which is `pass`, `fail` or `error`, then `strict`, the counts `errors`, `warnings` and `infos`, `coverage`, which is `null` when nothing was compared, `exitCode` and, when `result` is `error`, `error` and sometimes `errorValue`. |
|
|
218
|
+
| `findings` | A list of `Finding` objects, each with `code`, `severity`, `direction` and `message`, and where they apply the `html` and `markdown` locations and the `before` and `after` text. |
|
|
219
|
+
| `limitations` | The fixed list of what the check does not cover. |
|
|
220
|
+
|
|
221
|
+
## Development
|
|
222
|
+
|
|
223
|
+
The sources are TypeScript under `src/`, compiled with `tsc` to `dist/`. Clone the repository, build it and run the bundled example:
|
|
120
224
|
|
|
121
225
|
```sh
|
|
122
226
|
git clone https://github.com/erekola/markdown-parity-check.git
|
|
@@ -126,21 +230,25 @@ npm run build
|
|
|
126
230
|
node dist/src/cli.js --html-file test/fixtures/same/page.html --markdown-file test/fixtures/same/page.md --base-url https://example.com/page --front-matter strip
|
|
127
231
|
```
|
|
128
232
|
|
|
129
|
-
The
|
|
233
|
+
The example compares matching content and exits with code 0. It removes the Markdown file's front matter explicitly. Without `--front-matter strip` the same pair fails, because the front matter is compared as content.
|
|
130
234
|
|
|
131
|
-
|
|
235
|
+
`npm run typecheck` runs `tsc --noEmit`. `npm test` builds first and then runs the tests against `dist/`.
|
|
236
|
+
|
|
237
|
+
## Release process
|
|
238
|
+
|
|
239
|
+
After CI passes on the main branch, the release workflow `.github/workflows/release.yml` packs the tarball once and publishes it to npm with trusted publishing over OIDC when the version is not there yet. It then downloads the registry copy and checks its integrity hash and its content against the packed file. No npm token is stored.
|
|
132
240
|
|
|
133
|
-
|
|
241
|
+
Only after that check does it create the GitHub release with the verified tarball attached. The release notes are the CHANGELOG.md section of that version, so a version without one stops the release. A version that exists on npm with different content stops the release too. npm packs this README as well, so a change to it reaches the npm page only with a new version.
|
|
134
242
|
|
|
135
243
|
## Verify a release
|
|
136
244
|
|
|
137
245
|
GitHub Actions publishes every version from 0.1.2 on with npm trusted publishing, and each one carries a provenance attestation. To check one, install it in an empty directory and ask npm to verify the signatures. Replace the version with the one you want to check.
|
|
138
246
|
|
|
139
247
|
```sh
|
|
140
|
-
mkdir verify-mpc && cd verify-mpc && npm init -y && npm install markdown-parity-check@0.2.
|
|
248
|
+
mkdir verify-mpc && cd verify-mpc && npm init -y && npm install markdown-parity-check@0.2.29 --ignore-scripts && npm audit signatures
|
|
141
249
|
```
|
|
142
250
|
|
|
143
|
-
`npm audit signatures` checks the registry signature and the provenance attestation of each installed package that has one. The attestation of this package names three things to compare with what you expect: the repository `github.com/erekola/markdown-parity-check`, the workflow file `.github/workflows/release.yml` and the commit that produced the tarball. The npm version page shows them under Provenance. Tag `v0.2.
|
|
251
|
+
`npm audit signatures` checks the registry signature and the provenance attestation of each installed package that has one. The attestation of this package names three things to compare with what you expect: the repository `github.com/erekola/markdown-parity-check`, the workflow file `.github/workflows/release.yml` and the commit that produced the tarball. The npm version page shows them under Provenance. Tag `v0.2.29` must point at that same commit, and `gh api repos/erekola/markdown-parity-check/commits/v0.2.29 --jq .sha` prints it. A mismatch is a reason not to use that version. Provenance proves which workflow built a release and from which commit. It does not prove that the code is safe, so reading the source and the dependencies stays your job.
|
|
144
252
|
|
|
145
253
|
## Security
|
|
146
254
|
|
package/SECURITY.md
CHANGED
|
@@ -12,7 +12,7 @@ Please do not open a public issue for security reports. You can expect an initia
|
|
|
12
12
|
|
|
13
13
|
## Network and file access
|
|
14
14
|
|
|
15
|
-
URL mode requests HTML and Markdown over HTTP or HTTPS. Non-public network targets are blocked, including targets reached through DNS and redirects. Each fetch has a deadline and a limit on decoded response bytes. The defaults are 15 seconds and 5 MiB. JavaScript from fetched pages is not executed.
|
|
15
|
+
URL mode requests HTML and Markdown over HTTP or HTTPS. Non-public network targets are blocked, including targets reached through DNS and redirects. Each fetch has a deadline and a limit on decoded response bytes. The defaults are 15 seconds and 5 MiB. In the command line the same deadline also covers parsing and comparison, which run in a worker thread that is stopped when the deadline passes, and the tool then exits with code 2. The library entry point has no such deadline, so a program that compares untrusted documents with it needs a time limit of its own. JavaScript from fetched pages is not executed.
|
|
16
16
|
|
|
17
17
|
The work of pairing blocks is bounded by the product of the two block counts, at most 4 000 000 block pairs. The number of similar block pairs kept for matching is bounded as well. Above either limit the tool stops with exit code 2 and an error message instead of reporting a pass for a comparison it did not complete. The pairing of links inside one block is not separately bounded by default: with the default limits it has no budget of its own, and a block with thousands of links that cannot be resolved against a base URL can take time that grows with the square of the link count. A library caller can set the maxSimilarityWork limit to stop it.
|
|
18
18
|
|
package/dist/src/cli.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { type FetchOptions, type FetchResult } from './fetch.js';
|
|
3
|
-
export declare const HELP = "markdown-parity-check 0.2.
|
|
3
|
+
export declare const HELP = "markdown-parity-check 0.2.29\nCompares the main content of a web page's HTML and Markdown representations and reports concrete\nmissing, added and changed blocks.\n\nUsage:\n markdown-parity-check --url <https://example.com/page> [--markdown-url <url>] [options]\n markdown-parity-check --html-file <page.html> --markdown-file <page.md> [--base-url <url>] [options]\n\nModes:\n --url <url> Fetch <url> twice: with Accept: text/html and with Accept: text/markdown.\n --markdown-url <url> Fetch the Markdown from this explicit address instead (requires --url).\n --html-file <path> Offline: local HTML file (requires --markdown-file).\n --markdown-file <path> Offline: local Markdown file (requires --html-file).\n --base-url <url> Offline: base for resolving relative links on both sides.\n\nOptions:\n --html-profile generic|starlight\n HTML extraction rules (default: generic). Starlight includes inactive tab panels.\n --selector <css> CSS selector for the HTML main content (default: main, article, [role=main], then body).\n --front-matter keep|strip\n Markdown front matter. keep (default) removes nothing and warns when the document\n starts with a YAML-looking fenced block; strip removes that leading block.\n --format text|json Report format (default: text).\n --output <path> Write the report to a file instead of stdout. Refuses to overwrite an input file.\n --timeout-ms <n> Timeout in milliseconds for each fetch and for the parse-and-compare step\n (default: 15000). When it runs out the exit code is 2.\n --max-bytes <n> Cap on decoded response bytes per fetch (default: 5242880).\n --strict Treat warnings as rejecting findings too.\n --help, -h Show this help.\n --version, -V Show the version.\n\nExit codes:\n 0 comparison completed, no rejecting finding\n 1 comparison completed, rejecting content or delivery differences found\n 2 input, fetch, parse or report error prevented a reliable comparison\n\nOnly http(s) URLs to public addresses are fetched; loopback, private, link-local and other non-public\naddresses are refused, also behind DNS and redirects. No JavaScript is executed. Exit 0 does not prove\nsemantic equivalence.\n";
|
|
4
4
|
export declare class CliError extends Error {
|
|
5
5
|
}
|
|
6
6
|
export interface CliArgs {
|
package/dist/src/cli.js
CHANGED
|
@@ -7,7 +7,8 @@ import { parseArgs } from 'node:util';
|
|
|
7
7
|
import { fileURLToPath } from 'node:url';
|
|
8
8
|
import { fetchUrl, FetchError, validateUrl } from './fetch.js';
|
|
9
9
|
import { renderJson, renderText } from './report.js';
|
|
10
|
-
import {
|
|
10
|
+
import { runWithDeadline } from './deadline.js';
|
|
11
|
+
import { errorReport, RunError } from './run.js';
|
|
11
12
|
import { maskUrl, redactText } from './normalize.js';
|
|
12
13
|
import { TOOL_NAME, TOOL_VERSION } from './version.js';
|
|
13
14
|
export const HELP = `${TOOL_NAME} ${TOOL_VERSION}
|
|
@@ -34,7 +35,8 @@ Options:
|
|
|
34
35
|
starts with a YAML-looking fenced block; strip removes that leading block.
|
|
35
36
|
--format text|json Report format (default: text).
|
|
36
37
|
--output <path> Write the report to a file instead of stdout. Refuses to overwrite an input file.
|
|
37
|
-
--timeout-ms <n>
|
|
38
|
+
--timeout-ms <n> Timeout in milliseconds for each fetch and for the parse-and-compare step
|
|
39
|
+
(default: 15000). When it runs out the exit code is 2.
|
|
38
40
|
--max-bytes <n> Cap on decoded response bytes per fetch (default: 5242880).
|
|
39
41
|
--strict Treat warnings as rejecting findings too.
|
|
40
42
|
--help, -h Show this help.
|
|
@@ -345,7 +347,9 @@ export async function main(argv, io = { stdout: (s) => process.stdout.write(s),
|
|
|
345
347
|
html = readFileInput(args.htmlFile, base);
|
|
346
348
|
markdown = readFileInput(args.markdownFile, base);
|
|
347
349
|
}
|
|
348
|
-
|
|
350
|
+
// The deadline also covers parsing and comparison, which a timer on this thread cannot interrupt, so
|
|
351
|
+
// the step runs in a worker thread that is terminated when --timeout-ms has passed (exit 2).
|
|
352
|
+
report = await runWithDeadline(html, markdown, options, args.timeoutMs);
|
|
349
353
|
}
|
|
350
354
|
catch (err) {
|
|
351
355
|
let message;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type Report, type RunOptions, type SourceInput } from './run.js';
|
|
2
|
+
/** Runs run(html, markdown, options) in a worker thread and fails with a RunError (exit 2) when it has not finished after timeoutMs. */
|
|
3
|
+
export declare function runWithDeadline(html: SourceInput, markdown: SourceInput, options: RunOptions, timeoutMs: number): Promise<Report>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// Time limit for the parse-and-compare step of the command line. The Markdown and HTML parsers are
|
|
2
|
+
// synchronous, so a timer on the same thread cannot interrupt them. The step therefore runs in a
|
|
3
|
+
// worker thread (src/run-worker.ts) that is terminated at the deadline. The library core does not
|
|
4
|
+
// use this file (see src/core.ts).
|
|
5
|
+
//
|
|
6
|
+
// The deadline starts when the worker reports that its modules are loaded, not when it is spawned:
|
|
7
|
+
// starting a thread and loading the parsers takes about 170 ms, and counting that would make a small
|
|
8
|
+
// --timeout-ms value fail an ordinary local run (QA 1, Q6). A separate, generous start limit covers a
|
|
9
|
+
// worker that never becomes ready.
|
|
10
|
+
import { Worker } from 'node:worker_threads';
|
|
11
|
+
import { RunError } from './run.js';
|
|
12
|
+
/** How long the worker may take to load before the run is given up. Not tied to --timeout-ms. */
|
|
13
|
+
const START_LIMIT_MS = 30_000;
|
|
14
|
+
/** Runs run(html, markdown, options) in a worker thread and fails with a RunError (exit 2) when it has not finished after timeoutMs. */
|
|
15
|
+
export function runWithDeadline(html, markdown, options, timeoutMs) {
|
|
16
|
+
return new Promise((resolve, reject) => {
|
|
17
|
+
const input = { html, markdown, options };
|
|
18
|
+
const worker = new Worker(new URL('./run-worker.js', import.meta.url), { workerData: input });
|
|
19
|
+
let settled = false;
|
|
20
|
+
let timer;
|
|
21
|
+
const finish = (fn) => {
|
|
22
|
+
if (settled)
|
|
23
|
+
return;
|
|
24
|
+
settled = true;
|
|
25
|
+
clearTimeout(startTimer);
|
|
26
|
+
clearTimeout(timer);
|
|
27
|
+
void worker.terminate();
|
|
28
|
+
fn();
|
|
29
|
+
};
|
|
30
|
+
const startTimer = setTimeout(() => {
|
|
31
|
+
finish(() => reject(new RunError(`The comparison worker did not start within ${START_LIMIT_MS} ms.`)));
|
|
32
|
+
}, START_LIMIT_MS);
|
|
33
|
+
worker.on('message', (msg) => {
|
|
34
|
+
if (msg.ready) {
|
|
35
|
+
clearTimeout(startTimer);
|
|
36
|
+
if (!settled) {
|
|
37
|
+
timer = setTimeout(() => {
|
|
38
|
+
finish(() => reject(new RunError(`Timed out after ${timeoutMs} ms while parsing and comparing the two documents (--timeout-ms covers this step as well as each fetch).`)));
|
|
39
|
+
}, timeoutMs);
|
|
40
|
+
}
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const out = msg;
|
|
44
|
+
finish(() => {
|
|
45
|
+
if (out.ok)
|
|
46
|
+
resolve(out.report);
|
|
47
|
+
else if (out.runError)
|
|
48
|
+
reject(new RunError(out.message, out.value));
|
|
49
|
+
else {
|
|
50
|
+
const e = new Error(out.message);
|
|
51
|
+
if (out.stack !== undefined)
|
|
52
|
+
e.stack = out.stack;
|
|
53
|
+
reject(e);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
worker.once('error', (err) => finish(() => reject(err)));
|
|
58
|
+
worker.once('exit', (code) => finish(() => reject(new Error(`The comparison worker stopped without a result (exit ${code}).`))));
|
|
59
|
+
});
|
|
60
|
+
}
|
package/dist/src/fetch.js
CHANGED
|
@@ -88,13 +88,18 @@ function decompressor(encoding) {
|
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* One wall-clock deadline for a whole fetchUrl call: DNS, connect, headers, body, decompression and every
|
|
91
|
-
* redirect hop. When it fires, the active request
|
|
91
|
+
* redirect hop. When it fires, the active request, its response and its decompression stream are destroyed
|
|
92
|
+
* and the pending step rejects.
|
|
92
93
|
*/
|
|
93
94
|
class Deadline {
|
|
94
95
|
timer;
|
|
95
96
|
expired = false;
|
|
96
97
|
active = null;
|
|
97
98
|
waiters = new Set();
|
|
99
|
+
// Teardown callbacks of the response streams of the active hop. Destroying only the request leaves the
|
|
100
|
+
// decompression stream decoding what it already received (a gzip bomb of about 64 KiB on the wire decodes to
|
|
101
|
+
// 64 MiB, a brotli one to hundreds of MiB), so the streams are destroyed as well.
|
|
102
|
+
teardowns = new Set();
|
|
98
103
|
error;
|
|
99
104
|
constructor(url, timeoutMs) {
|
|
100
105
|
this.error = new FetchError('timeout', url, `Timed out after ${timeoutMs} ms (whole fetch including DNS, redirects and body).`);
|
|
@@ -104,10 +109,25 @@ class Deadline {
|
|
|
104
109
|
this.expired = true;
|
|
105
110
|
if (this.active)
|
|
106
111
|
this.active.destroy(this.error);
|
|
112
|
+
for (const t of this.teardowns)
|
|
113
|
+
t();
|
|
114
|
+
this.teardowns.clear();
|
|
107
115
|
for (const w of this.waiters)
|
|
108
116
|
w(this.error);
|
|
109
117
|
this.waiters.clear();
|
|
110
118
|
}
|
|
119
|
+
/** Registers a callback that destroys the response streams of the active hop when the deadline fires.
|
|
120
|
+
* Returns a function that removes it again. */
|
|
121
|
+
onFire(teardown) {
|
|
122
|
+
if (this.expired) {
|
|
123
|
+
teardown();
|
|
124
|
+
return () => { };
|
|
125
|
+
}
|
|
126
|
+
this.teardowns.add(teardown);
|
|
127
|
+
return () => {
|
|
128
|
+
this.teardowns.delete(teardown);
|
|
129
|
+
};
|
|
130
|
+
}
|
|
111
131
|
attach(req) {
|
|
112
132
|
this.active = req;
|
|
113
133
|
if (this.expired)
|
|
@@ -177,15 +197,30 @@ function requestOnce(url, address, options, deadline) {
|
|
|
177
197
|
reject(new FetchError('protocol', url.href, err.message));
|
|
178
198
|
return;
|
|
179
199
|
}
|
|
200
|
+
// Destroys the decompression stream and the response and detaches the pipe between them, so nothing decodes
|
|
201
|
+
// or reads on after the fetch has failed. No error is passed to destroy(), so neither stream emits one.
|
|
202
|
+
const teardown = () => {
|
|
203
|
+
if (dec) {
|
|
204
|
+
res.unpipe(dec);
|
|
205
|
+
dec.destroy();
|
|
206
|
+
}
|
|
207
|
+
res.destroy();
|
|
208
|
+
};
|
|
209
|
+
const unregister = deadline.onFire(teardown);
|
|
180
210
|
if (dec) {
|
|
181
211
|
stream = res.pipe(dec);
|
|
182
212
|
dec.on('error', (err) => finish(new FetchError('protocol', url.href, `Decompression failed: ${err.message}`)));
|
|
213
|
+
// A response that breaks off mid-body is a network failure; without this listener the error of the
|
|
214
|
+
// source stream of a pipe is not handled by anything.
|
|
215
|
+
res.on('error', (err) => finish(new FetchError('network', url.href, err.message)));
|
|
183
216
|
}
|
|
184
217
|
const finish = (err) => {
|
|
185
218
|
if (done)
|
|
186
219
|
return;
|
|
187
220
|
done = true;
|
|
221
|
+
unregister();
|
|
188
222
|
if (err) {
|
|
223
|
+
teardown();
|
|
189
224
|
req.destroy();
|
|
190
225
|
reject(err);
|
|
191
226
|
}
|
package/dist/src/html.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ export interface HtmlExtractOptions {
|
|
|
11
11
|
maxDepth?: number;
|
|
12
12
|
}
|
|
13
13
|
export declare class HtmlExtractError extends Error {
|
|
14
|
-
/** The user-supplied value the message names (here, --selector), capped the way
|
|
15
|
-
* caps a reflected value: in its own field, not only interpolated into the sentence, and bounded so an
|
|
14
|
+
/** The user-supplied value the message names (here, --selector), capped the way the hosted validator's cut()
|
|
15
|
+
* (src/worker.ts in turva-worker) caps a reflected value: in its own field, not only interpolated into the sentence, and bounded so an
|
|
16
16
|
* arbitrarily long selector cannot make the error text arbitrarily long (V10-P3-01, found by an outside
|
|
17
17
|
* review 2026-09-28). Report rendering still masks every string, value included, through redactText. */
|
|
18
18
|
value?: string;
|
package/dist/src/html.js
CHANGED
|
@@ -5,8 +5,8 @@ import { selectAll, selectOne } from 'css-select';
|
|
|
5
5
|
import { Element, Text } from 'domhandler';
|
|
6
6
|
import { extractNumbers, looseNormalize, normalizeCode, resolveHref, strictNormalize } from './normalize.js';
|
|
7
7
|
export class HtmlExtractError extends Error {
|
|
8
|
-
/** The user-supplied value the message names (here, --selector), capped the way
|
|
9
|
-
* caps a reflected value: in its own field, not only interpolated into the sentence, and bounded so an
|
|
8
|
+
/** The user-supplied value the message names (here, --selector), capped the way the hosted validator's cut()
|
|
9
|
+
* (src/worker.ts in turva-worker) caps a reflected value: in its own field, not only interpolated into the sentence, and bounded so an
|
|
10
10
|
* arbitrarily long selector cannot make the error text arbitrarily long (V10-P3-01, found by an outside
|
|
11
11
|
* review 2026-09-28). Report rendering still masks every string, value included, through redactText. */
|
|
12
12
|
value;
|
|
@@ -16,7 +16,7 @@ export class HtmlExtractError extends Error {
|
|
|
16
16
|
this.value = capValue(value);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
/** Caps a value that a message reflects back to the caller, the same length
|
|
19
|
+
/** Caps a value that a message reflects back to the caller, the same length the hosted validator's cut() (src/worker.ts in turva-worker) uses, and
|
|
20
20
|
* drops a trailing lone high surrogate a plain slice can leave behind. */
|
|
21
21
|
function capValue(s, n = 120) {
|
|
22
22
|
const cut = s.slice(0, n);
|
package/dist/src/netguard.js
CHANGED
|
@@ -140,6 +140,10 @@ export function isPublicIPv6(ip) {
|
|
|
140
140
|
return false; // ::1
|
|
141
141
|
if (allZeroTo(5) && g5 === 0xffff)
|
|
142
142
|
return isPublicIPv4(v4FromGroups(g6, g7)); // ::ffff:a.b.c.d
|
|
143
|
+
// ::ffff:0:a.b.c.d is the IPv4-translated range (RFC 2765 SIIT, ::ffff:0:0:0/96); like the mapped form it carries an IPv4
|
|
144
|
+
// address in the last 32 bits, so that address decides.
|
|
145
|
+
if (g0 === 0 && g1 === 0 && g2 === 0 && g3 === 0 && g4 === 0xffff && g5 === 0)
|
|
146
|
+
return isPublicIPv4(v4FromGroups(g6, g7));
|
|
143
147
|
if (allZeroTo(6))
|
|
144
148
|
return isPublicIPv4(v4FromGroups(g6, g7)); // ::a.b.c.d (deprecated compatible)
|
|
145
149
|
if (g0 === 0x64 && g1 === 0xff9b && g2 === 0 && g3 === 0 && g4 === 0 && g5 === 0)
|
package/dist/src/normalize.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare function looseNormalize(text: string): string;
|
|
|
8
8
|
export declare function codeWhitespaceKey(code: string): string;
|
|
9
9
|
/** Code content: CRLF and CR line endings become LF and every trailing newline is removed; other whitespace is kept. */
|
|
10
10
|
export declare function normalizeCode(code: string): string;
|
|
11
|
-
/** Removes ANSI escape sequences
|
|
11
|
+
/** Removes ANSI escape sequences, other C0 and C1 controls and the Unicode bidi controls from a value that may come from a compared page or a raw
|
|
12
12
|
* argument, so a plain --format text report cannot replay them at the terminal (0.2.16, found by an outside
|
|
13
13
|
* review 2026-09-28). */
|
|
14
14
|
export declare function stripControlChars(text: string): string;
|
package/dist/src/normalize.js
CHANGED
|
@@ -42,12 +42,15 @@ export function codeWhitespaceKey(code) {
|
|
|
42
42
|
export function normalizeCode(code) {
|
|
43
43
|
return code.replace(/\r\n?/g, '\n').replace(/\n+$/, '');
|
|
44
44
|
}
|
|
45
|
-
// Terminal control characters (ANSI escape sequences and
|
|
45
|
+
// Terminal control characters (ANSI escape sequences, C0 and C1 controls) and the Unicode bidi controls reach a text report unescaped if a
|
|
46
46
|
// compared page or an argument carries one, while --format json is already safe because JSON.stringify escapes
|
|
47
47
|
// every control character. Tab, newline and carriage return are kept: they are ordinary formatting, and by the
|
|
48
48
|
// time most report text reaches this point strictNormalize has already collapsed them to a single space anyway.
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
// C1 controls (U+0080 to U+009F) include the single-byte CSI (U+009B), which some terminals read as an escape. The bidi
|
|
50
|
+
// controls (U+202A to U+202E and U+2066 to U+2069) reorder the text a reader sees, so a quoted excerpt could read
|
|
51
|
+
// differently in a report than in the page. Both ranges match the hosted validator's stripControls(stripBidi()).
|
|
52
|
+
const CONTROL_CHARS = /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f\u202A-\u202E\u2066-\u2069]/g;
|
|
53
|
+
/** Removes ANSI escape sequences, other C0 and C1 controls and the Unicode bidi controls from a value that may come from a compared page or a raw
|
|
51
54
|
* argument, so a plain --format text report cannot replay them at the terminal (0.2.16, found by an outside
|
|
52
55
|
* review 2026-09-28). */
|
|
53
56
|
export function stripControlChars(text) {
|
|
@@ -462,8 +465,15 @@ export function maskHref(href) {
|
|
|
462
465
|
const u = new URL(href);
|
|
463
466
|
u.username = '';
|
|
464
467
|
u.password = '';
|
|
465
|
-
|
|
466
|
-
|
|
468
|
+
// One pass (Tek-560 in the hosted validator): a Set keeps the first-seen key order and merges duplicates, and the
|
|
469
|
+
// masked query is built once with append. Calling searchParams.set for each key re-serializes the whole query
|
|
470
|
+
// every time, which is quadratic in the number of keys (5 000 keys took 2.1 s, 20 000 took 35 s). An empty
|
|
471
|
+
// query is left as it is, so "?" stays "?".
|
|
472
|
+
const maskedQuery = new URLSearchParams();
|
|
473
|
+
for (const key of new Set(u.searchParams.keys()))
|
|
474
|
+
maskedQuery.append(key, '***');
|
|
475
|
+
if (maskedQuery.toString() !== '')
|
|
476
|
+
u.search = maskedQuery.toString();
|
|
467
477
|
u.hash = '';
|
|
468
478
|
return u.href;
|
|
469
479
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { run, type RunOptions, type SourceInput } from './run.js';
|
|
2
|
+
export interface WorkerInput {
|
|
3
|
+
html: SourceInput;
|
|
4
|
+
markdown: SourceInput;
|
|
5
|
+
options: RunOptions;
|
|
6
|
+
}
|
|
7
|
+
export type WorkerOutput = {
|
|
8
|
+
ok: true;
|
|
9
|
+
report: ReturnType<typeof run>;
|
|
10
|
+
} | {
|
|
11
|
+
ok: false;
|
|
12
|
+
runError: boolean;
|
|
13
|
+
message: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
stack?: string;
|
|
16
|
+
};
|
|
17
|
+
/** The first message says the modules are loaded and the deadline may start; the second is the result. */
|
|
18
|
+
export type WorkerMessage = {
|
|
19
|
+
ready: true;
|
|
20
|
+
} | (WorkerOutput & {
|
|
21
|
+
ready?: undefined;
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Worker thread entry used by the command line only (src/deadline.ts starts it). It runs the same
|
|
2
|
+
// run() the library exports, so a hostile document that keeps the parser busy can be stopped by
|
|
3
|
+
// terminating this thread at the deadline. Nothing in the library core imports this file or
|
|
4
|
+
// node:worker_threads; test/core.test.ts walks the core's import graph to keep it that way.
|
|
5
|
+
import { parentPort, workerData } from 'node:worker_threads';
|
|
6
|
+
import { run, RunError } from './run.js';
|
|
7
|
+
function reply(out) {
|
|
8
|
+
parentPort.postMessage(out);
|
|
9
|
+
}
|
|
10
|
+
// Static imports are evaluated before this line, so the parsers are loaded when the main thread
|
|
11
|
+
// starts the deadline. run() begins right after, in the same turn.
|
|
12
|
+
reply({ ready: true });
|
|
13
|
+
try {
|
|
14
|
+
const input = workerData;
|
|
15
|
+
reply({ ok: true, report: run(input.html, input.markdown, input.options) });
|
|
16
|
+
}
|
|
17
|
+
catch (err) {
|
|
18
|
+
if (err instanceof RunError)
|
|
19
|
+
reply({ ok: false, runError: true, message: err.message, value: err.value });
|
|
20
|
+
else
|
|
21
|
+
reply({ ok: false, runError: false, message: err?.message ?? String(err), stack: err?.stack });
|
|
22
|
+
}
|
package/dist/src/run.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export interface Report {
|
|
|
70
70
|
/** Present when the comparison could not be completed reliably. */
|
|
71
71
|
error?: string;
|
|
72
72
|
/** The specific input value error names, capped and reported in its own field rather than only inside
|
|
73
|
-
* the message sentence (V10-P3-01, the same split
|
|
73
|
+
* the message sentence (V10-P3-01, the same split the hosted validator's diagnostics in src/worker.ts of turva-worker already use). */
|
|
74
74
|
errorValue?: string;
|
|
75
75
|
};
|
|
76
76
|
findings: Finding[];
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const TOOL_NAME = "markdown-parity-check";
|
|
2
|
-
export declare const TOOL_VERSION = "0.2.
|
|
2
|
+
export declare const TOOL_VERSION = "0.2.29";
|
package/dist/src/version.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
// Cloudflare Worker as well as under Node.js. test/version.test.ts fails the build when these differ
|
|
3
3
|
// from package.json, which stays the version the release workflow publishes.
|
|
4
4
|
export const TOOL_NAME = 'markdown-parity-check';
|
|
5
|
-
export const TOOL_VERSION = '0.2.
|
|
5
|
+
export const TOOL_VERSION = '0.2.29';
|
package/package.json
CHANGED