We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc3e6cc commit d3ec435Copy full SHA for d3ec435
1 file changed
src/paste-markdown-html.ts
@@ -53,9 +53,7 @@ function convertToMarkdown(plaintext: string, walker: TreeWalker): string {
53
// Walk through the DOM tree
54
while (currentNode && index < NODE_LIMIT) {
55
index++
56
- const text = isLink(currentNode)
57
- ? currentNode.textContent || ''
58
- : (currentNode.firstChild as Text)?.wholeText || ''
+ const text = isLink(currentNode) ? currentNode.textContent || '' : (currentNode.firstChild as Text)?.wholeText || ''
59
60
// No need to transform whitespace
61
if (isEmptyString(text)) {
0 commit comments