Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Susan Were authored and Susan Were committed Mar 20, 2024
1 parent 893f178 commit 8d487f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/paste-markdown-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function onPaste(event: ClipboardEvent) {
const parser = new DOMParser()
const doc = parser.parseFromString(textHTMLClean, 'text/html')
const walker = doc.createTreeWalker(doc.body, NodeFilter.SHOW_ALL, node =>
node.parentNode && isLink(node.parentNode) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT
node.parentNode && isLink(node.parentNode) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT,
)

const markdown = convertToMarkdown(plaintext, walker)
Expand Down

0 comments on commit 8d487f9

Please sign in to comment.