diff --git a/test/index.js b/test/index.js index 514b773..03d91f1 100644 --- a/test/index.js +++ b/test/index.js @@ -12,14 +12,16 @@ import {directive, directiveHtml} from 'micromark-extension-directive' const own = {}.hasOwnProperty -test('micromark-extension-directive (syntax, text)', async function (t) { +test('micromark-extension-directive (core)', async function (t) { await t.test('should expose the public api', async function () { assert.deepEqual( Object.keys(await import('micromark-extension-directive')).sort(), ['directive', 'directiveHtml'] ) }) +}) +test('micromark-extension-directive (syntax, text)', async function (t) { await t.test( 'should support an escaped colon which would otherwise be a directive', async function () { @@ -179,6 +181,16 @@ test('micromark-extension-directive (syntax, text)', async function (t) { assert.equal(micromark(':a[a *b* c]asd', options()), '
asd
') }) + await t.test( + 'should support markdown in an label (hard break)', + async function () { + assert.equal( + micromark(':x[a \nb]c', options({'*': h})), + '
\nb
a g
') })