New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

md-to-react-email

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

md-to-react-email - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

CHANGELOG.md

53

dist/index.js

@@ -238,35 +238,35 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }// src/styles.ts

patterns.h1,
`<Heading as="h1" style="${parseCssInJsToInlineCss(
`<h1 data-id="react-email-heading" style="${parseCssInJsToInlineCss(
finalStyles.h1
)}">$1</Heading>`
)}">$1</h1>`
);
reactMailTemplate = reactMailTemplate.replace(
patterns.h2,
`<Heading as="h2" style="${parseCssInJsToInlineCss(
`<h2 data-id="react-email-heading" style="${parseCssInJsToInlineCss(
finalStyles.h2
)}">$1</Heading>`
)}">$1</h2>`
);
reactMailTemplate = reactMailTemplate.replace(
patterns.h3,
`<Heading as="h3" style="${parseCssInJsToInlineCss(
`<h3 data-id="react-email-heading" style="${parseCssInJsToInlineCss(
finalStyles.h3
)}">$1</Heading>`
)}">$1</h3>`
);
reactMailTemplate = reactMailTemplate.replace(
patterns.h4,
`<Heading as="h4" style="${parseCssInJsToInlineCss(
`<h4 data-id="react-email-heading" style="${parseCssInJsToInlineCss(
finalStyles.h4
)}">$1</Heading>`
)}">$1</h4>`
);
reactMailTemplate = reactMailTemplate.replace(
patterns.h5,
`<Heading as="h5" style="${parseCssInJsToInlineCss(
`<h5 data-id="react-email-heading" style="${parseCssInJsToInlineCss(
finalStyles.h5
)}">$1</Heading>`
)}">$1</h5>`
);
reactMailTemplate = reactMailTemplate.replace(
patterns.h6,
`<Heading as="h6" style="${parseCssInJsToInlineCss(
`<h6 data-id="react-email-heading" style="${parseCssInJsToInlineCss(
finalStyles.h6
)}">$1</Heading>`
)}">$1</h6>`
);

@@ -311,7 +311,11 @@ reactMailTemplate = reactMailTemplate.replace(

patterns.bold,
`<Text style="${parseCssInJsToInlineCss(finalStyles.bold)}">$1</Text>`
`<p data-id="react-email-text" style="${parseCssInJsToInlineCss(
finalStyles.bold
)}">$1</p>`
);
reactMailTemplate = reactMailTemplate.replace(
patterns.italic,
`<Text style="${parseCssInJsToInlineCss(finalStyles.italic)}">$1</Text>`
`<p data-id="react-email-text" style="${parseCssInJsToInlineCss(
finalStyles.italic
)}">$1</p>`
);

@@ -328,3 +332,3 @@ reactMailTemplate = reactMailTemplate.replace(

patterns.image,
`<Img style="${parseCssInJsToInlineCss(
`<img style="${parseCssInJsToInlineCss(
finalStyles.image

@@ -335,5 +339,5 @@ )}" alt="$1" src="$2" />`

patterns.link,
`<Link href="$2" style="${parseCssInJsToInlineCss(
`<a data-id="react-email-link" target="_blank" href="$2" style="${parseCssInJsToInlineCss(
finalStyles.link
)}">$1</Link>`
)}">$1</a>`
);

@@ -344,11 +348,15 @@ reactMailTemplate = reactMailTemplate.replace(

finalStyles.codeBlock
)}"><Text>${`{\`$1\`}`}</Text></pre>`
)}"><p data-id="react-email-text">${`{\`$1\`}`}</p></pre>`
);
reactMailTemplate = reactMailTemplate.replace(
patterns.codeInline,
`<Text style="${parseCssInJsToInlineCss(finalStyles.codeInline)}">$1</Text>`
`<p data-id="react-email-text" style="${parseCssInJsToInlineCss(
finalStyles.codeInline
)}">$1</p>`
);
reactMailTemplate = reactMailTemplate.replace(
/^>\s+(.+)$/gm,
`<Text style="${parseCssInJsToInlineCss(finalStyles.blockQuote)}">$1</Text>`
`<p data-id="react-email-text" style="${parseCssInJsToInlineCss(
finalStyles.blockQuote
)}">$1</p>`
);

@@ -361,5 +369,6 @@ reactMailTemplate = reactMailTemplate.replace(

patterns.hr,
`<Hr style="${parseCssInJsToInlineCss(finalStyles.hr)}" />`
`<hr data-id="react-email-hr" style="${parseCssInJsToInlineCss(
finalStyles.hr
)}" />`
);
reactMailTemplate = `<Section>${reactMailTemplate}</Section>`;
return reactMailTemplate;

@@ -366,0 +375,0 @@ }

{
"name": "md-to-react-email",
"version": "2.0.0",
"version": "2.0.1",
"description": "A simple Markdown parser for React-email written in typescript.",

@@ -25,3 +25,4 @@ "keywords": [

"test": "jest --coverage",
"test:watch": "jest --watch"
"test:watch": "jest --watch",
"publish": "tsup && npm publish"
},

@@ -28,0 +29,0 @@ "author": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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