From 16e69120756ed2b2ba1b338fa4145277d8dab224 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 17 Jun 2021 15:34:03 +0200 Subject: [PATCH] Add test for colon as character reference --- test/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/index.js b/test/index.js index fd70ab4..2c0c0a1 100644 --- a/test/index.js +++ b/test/index.js @@ -208,5 +208,14 @@ test('markdown -> html (micromark)', (t) => { 'should support email links after Unicode punctuation' ) + t.deepEqual( + micromark('http://user:password@host:port/path?key=value#fragment', { + extensions: [syntax], + htmlExtensions: [html] + }), + '

http://user:password@host:port/path?key=value#fragment

', + 'should not link character reference for `:`' + ) + t.end() })