markdown-parity-check 0.2.19 → 0.2.21

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 CHANGED
@@ -56,17 +56,19 @@ Exit code 0 means the implemented checks found nothing to reject. It does not pr
56
56
  | `--format text` or `--format json` | Print a readable report, which is the default, or a structured one. |
57
57
  | `--output PATH` | Write the report to a file. An input file is never overwritten. |
58
58
  | `--strict` | Treat warnings as rejecting findings. |
59
- | `--timeout-ms MS` | Deadline per request. The default is 15 000 ms. |
60
- | `--max-bytes N` | Limit on decoded bytes per response. The default is 5 MiB. |
59
+ | `--timeout-ms MS` | Deadline per request. The default is 15 000 ms. The value must be a positive decimal integer no greater than 2147483647. |
60
+ | `--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
61
  | `--help`, `--version` | Print the help or the version. |
62
62
 
63
+ 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
+
63
65
  ## What is compared
64
66
 
65
67
  Without `--selector`, the HTML content comes from the first visible `main`, `article` or `[role=main]`. If none of them exists, the page body is used and the report warns that page chrome may leak in. Two visible elements of the same kind that do not contain one another also give a warning, because only the first is compared. 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.
66
68
 
67
- Headings, paragraphs, list items, tables, code blocks and links are compared block by block. Content marked `hidden` or `aria-hidden` is left out on both sides, and a table caption counts as a paragraph before the table. Missing and added blocks are errors. A change in text or numbers is an error too, as is a changed table or link, and a list item that shows another number or task state. A difference in order, heading level, case, punctuation, list kind or nesting level is a warning. Footnotes in the Markdown are not compared. Each one is reported as a warning, and repeated blocks are reported too. 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. Each skip is reported as an information finding, which does not fail a check, not even with `--strict`.
69
+ Headings, paragraphs, list items, tables, code blocks and links are compared block by block. Content marked `hidden` or `aria-hidden` is left out on both sides, and a table caption counts as a paragraph before the table. Missing and added blocks are errors. A change in text or numbers is an error too, as is a changed table or link, and a list item that shows another number or a different checked or unchecked state. A checkbox that is present on one side only is a warning, and so is a difference in order, heading level, case, punctuation, list kind or nesting level. Footnotes in the Markdown are not compared. Each one is reported as a warning, and repeated blocks are reported too. 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. Each skip is reported as an information finding, which does not fail a check, not even with `--strict`.
68
70
 
69
- Some content is left out even when it sits inside the main content: the subtrees of `form`, `button`, `input`, `select`, `textarea`, `dialog`, `iframe`, `svg`, `canvas`, `object`, `embed` and `map`, of `nav`, `script`, `style`, `noscript` and `template`, and of any element with the role `navigation`, `banner`, `contentinfo`, `complementary`, `search`, `menu`, `menubar` or `dialog`. The `starlight` profile keeps an iframe that has a source and a title, as a link. An image is compared by its alt text only, not by its address, so two different images with the same alt text compare equal.
71
+ Some content is left out even when it sits inside the main content, in code blocks too: the subtrees of `form`, `button`, `input`, `select`, `textarea`, `dialog`, `iframe`, `svg`, `canvas`, `object`, `embed` and `map`, of `nav`, `script`, `style`, `noscript` and `template`, and of any element with the role `navigation`, `banner`, `contentinfo`, `complementary`, `search`, `menu`, `menubar` or `dialog`. The `starlight` profile keeps an iframe that has a source and a title, as a link. An image is compared by its alt text only, not by its address, so two different images with the same alt text compare equal.
70
72
 
71
73
  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.
72
74
 
@@ -86,7 +88,7 @@ Both use the comparison core of this package. They differ in which pages they re
86
88
 
87
89
  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.
88
90
 
89
- Some limits are not in the table. The command-line tool follows at most 5 redirects. The extraction stops with exit code 2 when elements are nested more than 1024 levels deep, and 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 values.
91
+ Some limits are not in the table. 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. 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. The command-line tool follows at most 5 redirects. When elements are nested more than 1024 levels deep, in the HTML page or in a raw HTML block written inside the Markdown, the extraction stops with exit code 2. The matching stops the same way when more than 1 000 000 similar block pairs would have to be considered, and the library `limits` default to the same two values.
90
92
 
91
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 does not repeat as a list, 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. [HTML and Markdown can disagree](https://turva.dev/blog/html-and-markdown-can-disagree) reads that result in full.
92
94
 
@@ -112,7 +114,7 @@ console.log(renderJson(report));
112
114
 
113
115
  `run(html, markdown, options)` returns the report object that `--format json` prints. 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.
114
116
 
115
- The options are `selector`, `frontMatter`, `strict` and `mode`. The report records `mode` as `url` or `offline`, and it does not switch any check on or off. 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`. A host with a smaller CPU or memory budget can pass lower `limits`: `maxAlignmentPairs`, `maxSimilarityCandidates`, `maxSimilarityWork` and `maxNestingDepth`. The caller fetches the pages and decides which addresses are allowed. The address policy the command applies is exported as `assertPublicHost` and `isPublicAddress`.
117
+ The options are `selector`, `frontMatter`, `htmlProfile` (`generic` or `starlight`, see docs/starlight.md), `strict` and `mode`. The report records `mode` as `url` or `offline`, and it does not switch any check on or off. 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`. A host with a smaller CPU or memory budget can pass lower `limits`: `maxAlignmentPairs`, `maxSimilarityCandidates`, `maxSimilarityWork` and `maxNestingDepth`. The nesting limit also applies to raw HTML blocks inside the Markdown. The caller fetches the pages and decides which addresses are allowed. The address policy the command applies is exported as `assertPublicHost` and `isPublicAddress`.
116
118
 
117
119
  ## Run from source
118
120
 
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.19\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> Per-fetch timeout in milliseconds (default: 15000).\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";
3
+ export declare const HELP = "markdown-parity-check 0.2.21\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> Per-fetch timeout in milliseconds (default: 15000).\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 {
@@ -25,4 +25,11 @@ export declare const MAX_NESTING_DEPTH = 1024;
25
25
  /** Deepest element nesting under a node, counted with an explicit stack so the count itself cannot
26
26
  * exhaust the call stack. */
27
27
  export declare function nestingDepth(node: ParentNode): number;
28
+ /** The nesting limit was exceeded. A subclass so a caller that otherwise tolerates a parse failure (raw HTML
29
+ * inside Markdown) can tell a limit from any other failure and let the limit through. */
30
+ export declare class HtmlDepthError extends HtmlExtractError {
31
+ readonly depth: number;
32
+ readonly limit: number;
33
+ constructor(depth: number, limit: number);
34
+ }
28
35
  export declare function extractHtml(source: string, options?: HtmlExtractOptions): Extraction;
package/dist/src/html.js CHANGED
@@ -107,22 +107,27 @@ function iframeLink(el) {
107
107
  const title = el.attribs['title'] ?? '';
108
108
  return src && title ? { src, title } : null;
109
109
  }
110
- /** The hidden and aria-hidden attributes alone, without the tag, role and page chrome rules of isSkipped. */
110
+ /** The hidden and aria-hidden attributes alone, without the tag, role and page chrome rules of isSkipped. Used
111
+ * where only those two attributes matter (a task checkbox, a hidden-ancestor test); code text uses isSkipped. */
111
112
  function hiddenAttr(el) {
112
113
  return el.attribs['hidden'] !== undefined || el.attribs['aria-hidden'] === 'true';
113
114
  }
114
115
  /**
115
- * Text of code as the page shows it: every text node with its whitespace, except under a hidden or aria-hidden
116
- * element. Up to 0.2.12 code used textContent, which also returns hidden descendants, so a hidden span inside a
117
- * code block counted as code while the same span in a paragraph did not (found by an outside review 2026-09-26).
116
+ * Text of code as the page shows it: every text node with its whitespace, except under an element the rest of the
117
+ * extraction skips (isSkipped: the tag, role and page chrome rules, hidden and aria-hidden). Up to 0.2.12 code
118
+ * used textContent, which also returns hidden descendants, so a hidden span inside a code block counted as code
119
+ * while the same span in a paragraph did not (found by an outside review 2026-09-26). Up to 0.2.20 only hidden
120
+ * and aria-hidden were applied here, so the text of a button, template or nav inside a pre was still code while
121
+ * the same element in a paragraph was left out (found by an outside review 2026-10-02).
118
122
  */
119
- function visibleCode(nodes) {
123
+ function visibleCode(nodes, profile = 'generic') {
120
124
  let out = '';
121
125
  for (const node of nodes) {
122
126
  if (node instanceof Text)
123
127
  out += node.data;
124
- else if (node instanceof Element && !hiddenAttr(node))
125
- out += visibleCode(node.children);
128
+ // The root argument only matters for header and footer directly under body, which cannot occur inside a pre.
129
+ else if (node instanceof Element && !isSkipped(node, node, profile))
130
+ out += visibleCode(node.children, profile);
126
131
  }
127
132
  return out;
128
133
  }
@@ -265,7 +270,7 @@ function handleBlock(ctx, el) {
265
270
  return;
266
271
  }
267
272
  if (el.name === 'pre') {
268
- const code = normalizeCode(ctx.profile === 'starlight' ? starlightCode(el) : visibleCode(el.children));
273
+ const code = normalizeCode(ctx.profile === 'starlight' ? starlightCode(el) : visibleCode(el.children, ctx.profile));
269
274
  if (code.trim() !== '')
270
275
  pushBlock(ctx, { type: 'code', text: strictNormalize(code), code, links: [] }, el, el);
271
276
  return;
@@ -411,23 +416,25 @@ function handleListItem(ctx, li) {
411
416
  }
412
417
  flushRun(ctx, run, li, ownFlushed ? 'paragraph' : 'listItem', info);
413
418
  }
414
- /** Read only recognized direct line wrappers; never discard extra non-whitespace code children. */
419
+ /** Read only recognized direct line wrappers; a shape that is not recognized falls back to visibleCode over all
420
+ * children, so extra non-whitespace code children are never discarded by the shape test. Elements isSkipped
421
+ * excludes are left out in every path, as in the generic profile. */
415
422
  function starlightCode(pre) {
416
423
  if (!ancestor(pre, (node) => hasClass(node, 'expressive-code')))
417
- return visibleCode(pre.children);
424
+ return visibleCode(pre.children, 'starlight');
418
425
  const meaningful = pre.children.filter((node) => !(node instanceof Text && !node.data.trim()));
419
426
  const code = meaningful.length === 1 ? meaningful[0] : null;
420
427
  if (!(code instanceof Element) || code.name !== 'code')
421
- return visibleCode(pre.children);
428
+ return visibleCode(pre.children, 'starlight');
422
429
  // The specialized shape below reads code.children directly and never passes through visibleCode, so a
423
430
  // hidden or aria-hidden <code> wrapper (the whole block, not one .ec-line inside it) was never checked and
424
431
  // its lines were exported as if visible (found by an outside review 2026-09-28). A hidden wrapper has no
425
432
  // visible code at all, the same outcome visibleCode itself gives a hidden element anywhere else.
426
- if (hiddenAttr(code))
433
+ if (isSkipped(code, code, 'starlight'))
427
434
  return '';
428
435
  const lines = code.children.filter((node) => !(node instanceof Text && !node.data.trim()));
429
436
  if (lines.length === 0 || !lines.every((node) => node instanceof Element && node.name === 'div' && hasClass(node, 'ec-line')))
430
- return visibleCode(pre.children);
437
+ return visibleCode(pre.children, 'starlight');
431
438
  // A gutter (line numbers from a plugin) sits beside the code as a direct child of the line; it is not code text.
432
439
  const gutter = (node) => node instanceof Element && node.name === 'div' && hasClass(node, 'gutter');
433
440
  // starlight-llms-txt prefixes + or - to ins and del lines when the block has a language other than diff. The page
@@ -437,7 +444,7 @@ function starlightCode(pre) {
437
444
  && lines.some((line) => line instanceof Element && (hasClass(line, 'ins') || hasClass(line, 'del')));
438
445
  // A line hidden with the hidden attribute is not exported either: up to 0.2.15 every .ec-line reached the text
439
446
  // regardless of visibility (0.2.16, found by an outside review 2026-09-28).
440
- const visibleLines = lines.filter((line) => !(line instanceof Element && hiddenAttr(line)));
447
+ const visibleLines = lines.filter((line) => !(line instanceof Element && isSkipped(line, line, 'starlight')));
441
448
  return visibleLines.map((line) => starlightLineText(line.children.filter((node) => !gutter(node)), line, diffMarkers)).join('\n');
442
449
  }
443
450
  /** One Expressive Code line as starlight-llms-txt exports it. The marker goes before the first text of the first
@@ -445,16 +452,16 @@ function starlightCode(pre) {
445
452
  function starlightLineText(children, line, diffMarkers) {
446
453
  const inserted = hasClass(line, 'ins');
447
454
  if (!diffMarkers || !(inserted || hasClass(line, 'del')))
448
- return visibleCode(children);
455
+ return visibleCode(children, 'starlight');
449
456
  const target = firstNonIndentSpan(children)?.children[0];
450
457
  if (!(target instanceof Text))
451
- return visibleCode(children);
458
+ return visibleCode(children, 'starlight');
452
459
  let out = '';
453
460
  const collect = (nodes) => {
454
461
  for (const node of nodes) {
455
462
  if (node instanceof Text)
456
463
  out += (node === target ? (inserted ? '+' : '-') : '') + node.data;
457
- else if (node instanceof Element && !hiddenAttr(node))
464
+ else if (node instanceof Element && !isSkipped(node, node, 'starlight'))
458
465
  collect(node.children);
459
466
  }
460
467
  };
@@ -678,6 +685,17 @@ function pickRoot(doc, selector, notes, issues) {
678
685
  }
679
686
  throw new HtmlExtractError('Document has no <body> element.');
680
687
  }
688
+ /** The nesting limit was exceeded. A subclass so a caller that otherwise tolerates a parse failure (raw HTML
689
+ * inside Markdown) can tell a limit from any other failure and let the limit through. */
690
+ export class HtmlDepthError extends HtmlExtractError {
691
+ depth;
692
+ limit;
693
+ constructor(depth, limit) {
694
+ super(`HTML nesting depth ${depth} exceeds the limit of ${limit} levels; the comparison was not run.`);
695
+ this.depth = depth;
696
+ this.limit = limit;
697
+ }
698
+ }
681
699
  export function extractHtml(source, options = {}) {
682
700
  const profile = options.profile ?? 'generic';
683
701
  if (profile !== 'generic' && profile !== 'starlight')
@@ -687,7 +705,7 @@ export function extractHtml(source, options = {}) {
687
705
  const maxDepth = options.maxDepth ?? MAX_NESTING_DEPTH;
688
706
  const depth = nestingDepth(doc);
689
707
  if (depth > maxDepth)
690
- throw new HtmlExtractError(`HTML nesting depth ${depth} exceeds the limit of ${maxDepth} levels; the comparison was not run.`);
708
+ throw new HtmlDepthError(depth, maxDepth);
691
709
  const notes = [];
692
710
  const issues = [];
693
711
  const baseEl = selectOne('base[href]', doc.children);
@@ -2,7 +2,7 @@
2
2
  import { fromMarkdown } from 'mdast-util-from-markdown';
3
3
  import { gfm } from 'micromark-extension-gfm';
4
4
  import { gfmFromMarkdown } from 'mdast-util-gfm';
5
- import { extractHtml, MAX_NESTING_DEPTH } from './html.js';
5
+ import { extractHtml, HtmlDepthError, MAX_NESTING_DEPTH } from './html.js';
6
6
  import { parseDocument } from 'htmlparser2';
7
7
  import { Element, Text } from 'domhandler';
8
8
  import { excerpt, extractNumbers, insideHiddenUrlPart, looseNormalize, normalizeCode, resolveHref, strictNormalize } from './normalize.js';
@@ -325,9 +325,16 @@ function handleRawHtml(ctx, value, line) {
325
325
  const textOnly = visibleText(value);
326
326
  let parsed = null;
327
327
  try {
328
- parsed = extractHtml(`<body>${value}</body>`, { selector: 'body', baseUrl: ctx.base });
328
+ parsed = extractHtml(`<body>${value}</body>`, { selector: 'body', baseUrl: ctx.base, maxDepth: ctx.maxDepth + 1 });
329
329
  }
330
- catch {
330
+ catch (err) {
331
+ // A block nested past the caller's limit stops the comparison like the same nesting in the HTML page does
332
+ // (run.ts turns this into the RunError, exit 2). Any other parse failure still falls back to the warning.
333
+ // The wrapper body is one level the block does not have, so the limit passed above is one higher and the
334
+ // reported depth one lower: the block is held to the same limit, and reported in the same terms, as the
335
+ // same element tree on the HTML side.
336
+ if (err instanceof HtmlDepthError)
337
+ throw new HtmlDepthError(err.depth - 1, ctx.maxDepth);
331
338
  parsed = null;
332
339
  }
333
340
  const blocks = parsed?.blocks ?? [];
@@ -416,7 +423,7 @@ export function extractMarkdown(source, options = {}) {
416
423
  const depth = treeDepth(tree);
417
424
  if (depth > maxDepth)
418
425
  throw new MarkdownExtractError(`Markdown nesting depth ${depth} exceeds the limit of ${maxDepth} levels; the comparison was not run.`);
419
- const ctx = { base: options.baseUrl ?? null, source: fm.text, blocks: [], notes: [], issues: [], definitions: collectDefinitions(tree), listDepth: 0 };
426
+ const ctx = { base: options.baseUrl ?? null, source: fm.text, blocks: [], notes: [], issues: [], definitions: collectDefinitions(tree), listDepth: 0, maxDepth };
420
427
  const fmExcerpt = () => excerpt(fm.body.replace(/\s+/g, ' '));
421
428
  if (mode === 'strip' && fm.skippedLines > 0) {
422
429
  ctx.notes.push(`Front matter (${fm.skippedLines} lines) was stripped as requested (--front-matter strip).`);
@@ -1,2 +1,2 @@
1
1
  export declare const TOOL_NAME = "markdown-parity-check";
2
- export declare const TOOL_VERSION = "0.2.19";
2
+ export declare const TOOL_VERSION = "0.2.21";
@@ -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.19';
5
+ export const TOOL_VERSION = '0.2.21';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markdown-parity-check",
3
- "version": "0.2.19",
3
+ "version": "0.2.21",
4
4
  "description": "Compares the main content of a web page's HTML and Markdown representations and reports concrete differences.",
5
5
  "keywords": [
6
6
  "markdown",