mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Initial implementation of markdownlint-micromark package, micromark.mjs helpers, and tests.
This commit is contained in:
parent
2e7b7b9079
commit
366a498150
14 changed files with 2885 additions and 2 deletions
10
test/markdownlint-test-micromark.mjs
Normal file
10
test/markdownlint-test-micromark.mjs
Normal file
|
@ -0,0 +1,10 @@
|
|||
import fs from "node:fs/promises";
|
||||
import test from "ava";
|
||||
import { parse } from "../lib/micromark.mjs";
|
||||
|
||||
test("parse", async(t) => {
|
||||
t.plan(1);
|
||||
const content = await fs.readFile("./test/every-markdown-syntax.md", "utf8");
|
||||
const document = parse(content);
|
||||
t.snapshot(document, "Unexpected tokens");
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue