File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -401,9 +401,10 @@ describe('paste-markdown', function () {
401
401
it ( 'pastes markdown with link labels that contains special characters in html' , function ( ) {
402
402
// eslint-disable-next-line github/unescaped-html-literal
403
403
const sentence = `<meta charset='utf-8'>
404
- <a href="https://www.abcxyz.org/">foo bar</a> <a href="https://example.com/?q=foo&bar=baz">foo&bar</a>`
405
- const plaintextSentence = 'foo bar foo&bar'
406
- const markdownSentence = '[foo bar](https://www.abcxyz.org/) [foo&bar](https://example.com/?q=foo&bar=baz)'
404
+ <p>foo&bar <a href="https://www.abcxyz.org/">foo bar</a> <a href="https://example.com/?q=foo&bar=baz">foo&bar</a></p>`
405
+ const plaintextSentence = 'foo&bar foo bar foo&bar'
406
+ const markdownSentence =
407
+ 'foo&bar [foo bar](https://www.abcxyz.org/) [foo&bar](https://example.com/?q=foo&bar=baz)'
407
408
408
409
paste ( textarea , { 'text/html' : sentence , 'text/plain' : plaintextSentence } )
409
410
assert . equal ( textarea . value , markdownSentence )
You can’t perform that action at this time.
0 commit comments