Reimplement getReferenceLinkImageData using micromark tokens.

This commit is contained in:
David Anson 2023-01-29 20:36:53 -08:00
parent 57c612cfa4
commit 97f99befb8
13 changed files with 1235 additions and 1068 deletions

View file

@ -1433,9 +1433,8 @@ test("getReferenceLinkImageData().shortcuts", (t) => {
"tags": [ "-" ],
"function":
(params) => {
const lineMetadata = helpers.getLineMetadata(params);
const { shortcuts } =
helpers.getReferenceLinkImageData(lineMetadata);
helpers.getReferenceLinkImageData(params);
t.is(shortcuts.size, 0, [ ...shortcuts.keys() ].join(", "));
}
}