@github/paste-markdown
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -111,2 +111,5 @@ function insertText(textarea, text) { | ||
: ((_a = currentNode.firstChild) === null || _a === void 0 ? void 0 : _a.wholeText) || ''; | ||
if (!isLink(currentNode)) { | ||
markdownIgnoreBeforeIndex += text.replace(/[\t\n\r ]+/g, ' ').trimStart().length; | ||
} | ||
if (isEmptyString(text)) { | ||
@@ -124,5 +127,2 @@ currentNode = walker.nextNode(); | ||
} | ||
else { | ||
markdownIgnoreBeforeIndex = markdownFoundIndex + text.length; | ||
} | ||
} | ||
@@ -129,0 +129,0 @@ currentNode = walker.nextNode(); |
@@ -117,2 +117,5 @@ (function (global, factory) { | ||
: ((_a = currentNode.firstChild) === null || _a === void 0 ? void 0 : _a.wholeText) || ''; | ||
if (!isLink(currentNode)) { | ||
markdownIgnoreBeforeIndex += text.replace(/[\t\n\r ]+/g, ' ').trimStart().length; | ||
} | ||
if (isEmptyString(text)) { | ||
@@ -130,5 +133,2 @@ currentNode = walker.nextNode(); | ||
} | ||
else { | ||
markdownIgnoreBeforeIndex = markdownFoundIndex + text.length; | ||
} | ||
} | ||
@@ -135,0 +135,0 @@ currentNode = walker.nextNode(); |
{ | ||
"name": "@github/paste-markdown", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Paste spreadsheet cells as a Markdown table.", | ||
@@ -5,0 +5,0 @@ "repository": "github/paste-markdown", |
40225