File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 5151 < textarea cols ="50 " rows ="10 "> The examples can be found here.</ textarea >
5252
5353 < script type ="module ">
54- // import {subscribe, installLink } from '../dist/index.esm.js'
55- import { subscribe , installLink } from 'https://unpkg.com/@github/paste-markdown/dist/index.esm.js'
54+ // import {subscribe} from '../dist/index.esm.js'
55+ import { subscribe } from 'https://unpkg.com/@github/paste-markdown/dist/index.esm.js'
5656 subscribe ( document . querySelector ( 'textarea' ) )
5757 installLink ( document . querySelector ( 'textarea' ) )
5858 </ script >
Original file line number Diff line number Diff line change @@ -10,12 +10,14 @@ interface Subscription {
1010function subscribe ( el : HTMLElement ) : Subscription {
1111 installTable ( el )
1212 installImageLink ( el )
13+ installLink ( el )
1314 installText ( el )
1415
1516 return {
1617 unsubscribe : ( ) => {
1718 uninstallTable ( el )
1819 uninstallImageLink ( el )
20+ uninstallLink ( el )
1921 uninstallText ( el )
2022 }
2123 }
Original file line number Diff line number Diff line change 1- import { subscribe , installLink , uninstallLink } from '../dist/index.esm.js'
1+ import { subscribe } from '../dist/index.esm.js'
22
33describe ( 'paste-markdown' , function ( ) {
44 describe ( 'installed on textarea' , function ( ) {
@@ -11,12 +11,10 @@ describe('paste-markdown', function () {
1111
1212 textarea = document . querySelector ( 'textarea[data-paste-markdown]' )
1313 subscription = subscribe ( textarea )
14- installLink ( textarea )
1514 } )
1615
1716 afterEach ( function ( ) {
1817 subscription . unsubscribe ( )
19- uninstallLink ( textarea )
2018 document . body . innerHTML = ''
2119 } )
2220
You can’t perform that action at this time.
0 commit comments