Files
test-repo/tests/format/markdown/commonmark-test-suite/format.test.js
T
6c339cd882 Upgrade to latest micromark (markdown only) (#18277)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: fisker <lionkay@gmail.com>
Co-authored-by: Jed Fox <git@jedfox.com>
Co-authored-by: seiya <20365512+seiyab@users.noreply.github.com>
2025-12-26 19:43:49 +08:00

33 lines
651 B
JavaScript

import commonmarkTestSuite from "commonmark-test-suite";
const BUGS = new Set([
"example-43.md",
"example-47.md",
"example-77.md",
"example-146.md",
"example-349.md",
]);
runFormatTest(
{
importMeta: import.meta,
snippets: commonmarkTestSuite.latest.testCases
.map(({ section, markdown: input, example }) => {
const filename = `example-${example}.md`;
if (BUGS.has(filename)) {
return;
}
return {
name: `${filename} (${section})`,
filename,
code: input,
};
})
.filter(Boolean),
},
["markdown"],
{ proseWrap: "always" },
);