markdown-parity-check 0.2.38 → 0.2.40

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/dist/src/run.js CHANGED
@@ -4,7 +4,7 @@ import { AlignmentLimitError } from './align.js';
4
4
  import { compare } from './compare.js';
5
5
  import { extractHtml, HtmlExtractError, MAX_NESTING_DEPTH } from './html.js';
6
6
  import { extractMarkdown, MarkdownExtractError } from './markdown.js';
7
- import { maskUrl } from './normalize.js';
7
+ import { LinkTargetError, maskUrl } from './normalize.js';
8
8
  import { TOOL_VERSION } from './version.js';
9
9
  export { MAX_NESTING_DEPTH };
10
10
  /** Parser stack exhaustion on hostile nesting is reported as a comparison error, never as a crash. */
@@ -13,6 +13,8 @@ function extractionError(side, err) {
13
13
  return new RunError(err.message, err.value);
14
14
  if (err instanceof MarkdownExtractError)
15
15
  return new RunError(err.message);
16
+ if (err instanceof LinkTargetError)
17
+ return new RunError(err.message);
16
18
  if (err instanceof RangeError)
17
19
  return new RunError(`The ${side} could not be parsed within the call stack (${err.message}); it is nested too deeply to compare.`);
18
20
  return null;
@@ -1,2 +1,2 @@
1
1
  export declare const TOOL_NAME = "markdown-parity-check";
2
- export declare const TOOL_VERSION = "0.2.38";
2
+ export declare const TOOL_VERSION = "0.2.40";
@@ -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.38';
5
+ export const TOOL_VERSION = '0.2.40';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markdown-parity-check",
3
- "version": "0.2.38",
3
+ "version": "0.2.40",
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",