import assert from "node:assert/strict";
import test from "node:test";
import {
createMarkdownDocument,
extractMetadataFromHtml,
} from "../markdown-conversion-shared.js";
import { tryUrlRuleParsers } from "./index.js";
const CAPTURED_AT = "2026-03-22T06:00:00.000Z";
const ARTICLE_HTML = `
Major leap towards reanimation after death as mammal brain preserved
Researchers say the preserved structure and activity markers suggest a significant step
forward in keeping delicate brain tissue viable after clinical death.
The archive wrapper should not take precedence over the actual article body when the
CONTENT container is available for parsing.
`;
const ARCHIVE_FALLBACK_HTML = `