Skip to content

Commit

Permalink
Add test for colon as character reference
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 17, 2021
1 parent 69c84f1 commit 16e6912
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}),
'<p>http://user:password@host:port/path?key=value#fragment</p>',
'should not link character reference for `:`'
)

t.end()
})

0 comments on commit 16e6912

Please sign in to comment.