Skip to content

Commit 21b6020

Browse files
rename file to suit content
1 parent 55f90e1 commit 21b6020

8 files changed

Lines changed: 8 additions & 12 deletions

examples/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
<textarea cols="50" rows="10">The examples can be found here.</textarea>
6565

6666
<script type="module">
67-
// import {subscribe} from '../dist/index.esm.js'
68-
import {subscribe} from 'https://unpkg.com/@github/paste-markdown/dist/index.esm.js'
67+
import {subscribe} from '../dist/index.esm.js'
68+
// import {subscribe} from 'https://unpkg.com/@github/paste-markdown/dist/index.esm.js'
6969
subscribe(document.querySelector('textarea'))
7070
</script>
7171
</body>

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
installBefore as installUnformatted,
88
installAfter as installUnformattedAfter,
99
uninstall as uninstallUnformatted
10-
} from './handlers'
10+
} from './paste-keyboard-shortcut-helper'
1111

1212
interface Subscription {
1313
unsubscribe: () => void
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ function setUnformattedFlag(event: KeyboardEvent): void {
99

1010
function unsetUnformattedFlag(event: ClipboardEvent): void {
1111
const {currentTarget: el} = event
12-
// eslint-disable-next-line no-console
13-
console.log('💜', 'installUnsetUnformattedFlag', unformatted.get(el as HTMLElement))
1412
unformatted.delete(el as HTMLElement)
1513
}
1614

src/paste-markdown-html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {insertText} from './text'
2-
import {isUnformatted} from './handlers'
2+
import {isUnformatted} from './paste-keyboard-shortcut-helper'
33

44
export function install(el: HTMLElement): void {
55
el.addEventListener('paste', onPaste)

src/paste-markdown-image-link.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* @flow strict */
22
import {insertText} from './text'
3-
import {isUnformatted} from './handlers'
3+
import {isUnformatted} from './paste-keyboard-shortcut-helper'
44

55
export function install(el: HTMLElement): void {
66
el.addEventListener('dragover', onDragover)

src/paste-markdown-link.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {insertText} from './text'
2-
import {isUnformatted} from './handlers'
2+
import {isUnformatted} from './paste-keyboard-shortcut-helper'
33

44
export function install(el: HTMLElement): void {
55
el.addEventListener('paste', onPaste)
@@ -11,8 +11,6 @@ export function uninstall(el: HTMLElement): void {
1111

1212
function onPaste(event: ClipboardEvent) {
1313
const {currentTarget: el} = event
14-
// eslint-disable-next-line no-console
15-
console.log('💜', 'onPaste', isUnformatted(el as HTMLElement))
1614
if (isUnformatted(el as HTMLElement)) return
1715

1816
const transfer = event.clipboardData

src/paste-markdown-table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {insertText} from './text'
2-
import {isUnformatted} from './handlers'
2+
import {isUnformatted} from './paste-keyboard-shortcut-helper'
33

44
export function install(el: HTMLElement): void {
55
el.addEventListener('dragover', onDragover)

src/paste-markdown-text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {insertText} from './text'
2-
import {isUnformatted} from './handlers'
2+
import {isUnformatted} from './paste-keyboard-shortcut-helper'
33

44
export function install(el: HTMLElement): void {
55
el.addEventListener('paste', onPaste)

0 commit comments

Comments
 (0)