@@ -25,7 +25,7 @@ test('gfmAutolinkLiteralFromMarkdown', () => {
2525 fromMarkdown(
2626 'www.example.com, https://example.com, and contact@example.com.',
2727 {
28- extensions: [gfmAutolinkLiteral],
28+ extensions: [gfmAutolinkLiteral() ],
2929 mdastExtensions: [gfmAutolinkLiteralFromMarkdown]
3030 }
3131 ),
@@ -133,7 +133,7 @@ test('gfmAutolinkLiteralFromMarkdown', () => {
133133
134134 assert.deepEqual(
135135 fromMarkdown('[https://google.com](https://google.com)', {
136- extensions: [gfmAutolinkLiteral],
136+ extensions: [gfmAutolinkLiteral() ],
137137 mdastExtensions: [gfmAutolinkLiteralFromMarkdown]
138138 }),
139139 {
@@ -409,14 +409,14 @@ test('gfmAutolinkLiteralToMarkdown', async () => {
409409 const input = await fs.readFile(inputUrl)
410410 const expected = String(await fs.readFile(expectedUrl))
411411
412- const hast = toHast(
413- fromMarkdown(input, {
414- extensions: [gfmAutolinkLiteral],
415- mdastExtensions: [gfmAutolinkLiteralFromMarkdown]
416- }),
417- {allowDangerousHtml: true}
418- )
412+ const mdast = fromMarkdown(input, {
413+ extensions: [gfmAutolinkLiteral()],
414+ mdastExtensions: [gfmAutolinkLiteralFromMarkdown]
415+ })
416+
417+ const hast = toHast(mdast, {allowDangerousHtml: true})
419418 assert(hast && hast.type === 'root', 'expected root')
419+
420420 let actual = toHtml(hast, {
421421 allowDangerousHtml: true,
422422 entities: {useNamedReferences: true}
0 commit comments