Skip to content

Commit d3ec435

Browse files
committed
chore: lint
1 parent fc3e6cc commit d3ec435

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/paste-markdown-html.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ function convertToMarkdown(plaintext: string, walker: TreeWalker): string {
5353
// Walk through the DOM tree
5454
while (currentNode && index < NODE_LIMIT) {
5555
index++
56-
const text = isLink(currentNode)
57-
? currentNode.textContent || ''
58-
: (currentNode.firstChild as Text)?.wholeText || ''
56+
const text = isLink(currentNode) ? currentNode.textContent || '' : (currentNode.firstChild as Text)?.wholeText || ''
5957

6058
// No need to transform whitespace
6159
if (isEmptyString(text)) {

0 commit comments

Comments
 (0)