@github/paste-markdown
Advanced tools
Comparing version 1.4.3 to 1.5.0
@@ -152,3 +152,3 @@ function insertText(textarea, text) { | ||
let markdown = ''; | ||
if (isUserMention(element)) { | ||
if (isUserMention(element) || isTeamMention(element)) { | ||
markdown = label; | ||
@@ -177,2 +177,6 @@ } | ||
} | ||
function isTeamMention(link) { | ||
var _a; | ||
return ((_a = link.textContent) === null || _a === void 0 ? void 0 : _a.slice(0, 1)) === '@' && link.getAttribute('data-hovercard-type') === 'team'; | ||
} | ||
@@ -179,0 +183,0 @@ function install$3(el) { |
@@ -158,3 +158,3 @@ (function (global, factory) { | ||
let markdown = ''; | ||
if (isUserMention(element)) { | ||
if (isUserMention(element) || isTeamMention(element)) { | ||
markdown = label; | ||
@@ -183,2 +183,6 @@ } | ||
} | ||
function isTeamMention(link) { | ||
var _a; | ||
return ((_a = link.textContent) === null || _a === void 0 ? void 0 : _a.slice(0, 1)) === '@' && link.getAttribute('data-hovercard-type') === 'team'; | ||
} | ||
@@ -185,0 +189,0 @@ function install$3(el) { |
{ | ||
"name": "@github/paste-markdown", | ||
"version": "1.4.3", | ||
"version": "1.5.0", | ||
"description": "Paste spreadsheet cells as a Markdown table.", | ||
@@ -5,0 +5,0 @@ "repository": "github/paste-markdown", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40167
946