We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 460e1b6 commit d4c60b1Copy full SHA for d4c60b1
test/test.js
@@ -22,6 +22,13 @@ describe('paste-markdown', function () {
22
assert.include(textarea.value, '\n\n')
23
})
24
25
+ it('turns pasted urls on selected text into markdown links', function () {
26
+ textarea.value = 'The examples can be found here.'
27
+ textarea.setSelectionRange(26, 30)
28
+ paste(textarea, {'text/plain': 'https://github.com'})
29
+ assert.equal(textarea.value, 'The examples can be found [here](https://github.com).')
30
+ })
31
+
32
it('turns html tables into markdown', function () {
33
const data = {
34
'text/html': `
0 commit comments