Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@github/paste-markdown

Package Overview
Dependencies
Maintainers
20
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@github/paste-markdown - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

9

dist/index.esm.js

@@ -393,2 +393,7 @@ function insertText(textarea, text) {

return;
const start = html.substring(0, html.indexOf('<table'));
const tableCloseIndex = html.lastIndexOf('</table>');
if (!start || !tableCloseIndex)
return;
const end = html.substring(tableCloseIndex + 8);
const parser = new DOMParser();

@@ -401,3 +406,5 @@ const parsedDocument = parser.parseFromString(html, 'text/html');

const formattedTable = tableMarkdown(table);
return html.replace(/<meta.*?>/, '').replace(/<table[.\S\s]*<\/table>/, `\n${formattedTable}`);
if (!formattedTable)
return;
return [start, formattedTable, end].join('').replace(/<meta.*?>/, '');
}

@@ -404,0 +411,0 @@

@@ -399,2 +399,7 @@ (function (global, factory) {

return;
const start = html.substring(0, html.indexOf('<table'));
const tableCloseIndex = html.lastIndexOf('</table>');
if (!start || !tableCloseIndex)
return;
const end = html.substring(tableCloseIndex + 8);
const parser = new DOMParser();

@@ -407,3 +412,5 @@ const parsedDocument = parser.parseFromString(html, 'text/html');

const formattedTable = tableMarkdown(table);
return html.replace(/<meta.*?>/, '').replace(/<table[.\S\s]*<\/table>/, `\n${formattedTable}`);
if (!formattedTable)
return;
return [start, formattedTable, end].join('').replace(/<meta.*?>/, '');
}

@@ -410,0 +417,0 @@

5

package.json
{
"name": "@github/paste-markdown",
"version": "1.4.2",
"version": "1.4.3",
"description": "Paste spreadsheet cells as a Markdown table.",

@@ -16,4 +16,3 @@ "repository": "github/paste-markdown",

"test": "karma start karma.config.js",
"prepublishOnly": "npm run build",
"postpublish": "npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'"
"prepublishOnly": "npm run build"
},

@@ -20,0 +19,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc