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

@jsx-email/markdown

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsx-email/markdown - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

5

dist/es/markdown.d.ts

@@ -0,3 +1,3 @@

import { StylesType } from 'md-to-react-email';
import type React from 'react';
import { StylesType } from './transform';
export interface MarkdownProps extends React.PropsWithChildren {

@@ -7,8 +7,7 @@ children: string;

markdownCustomStyles?: StylesType;
showDataId?: boolean;
}
export declare const Markdown: {
({ children, markdownContainerStyles, markdownCustomStyles, showDataId, ...props }: React.PropsWithChildren<MarkdownProps>): import("react/jsx-runtime").JSX.Element;
({ children, markdownContainerStyles, markdownCustomStyles, ...props }: React.PropsWithChildren<MarkdownProps>): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
//# sourceMappingURL=markdown.d.ts.map

7

dist/es/markdown.js
import { jsx as _jsx } from "react/jsx-runtime";
import { parseMarkdownToJSX } from './transform';
export const Markdown = ({ children, markdownContainerStyles, markdownCustomStyles, showDataId = false, ...props }) => {
import { parseMarkdownToJSX } from 'md-to-react-email';
export const Markdown = ({ children, markdownContainerStyles, markdownCustomStyles, ...props }) => {
const parsedMarkdown = parseMarkdownToJSX({
customStyles: markdownCustomStyles,
markdown: children,
withDataAttr: showDataId
markdown: children
});

@@ -9,0 +8,0 @@ return (_jsx("div", { ...props, "data-id": "@jsx-email/markdown", style: markdownContainerStyles, dangerouslySetInnerHTML: { __html: parsedMarkdown } }));

@@ -0,3 +1,3 @@

import { StylesType } from 'md-to-react-email';
import type React from 'react';
import { StylesType } from './transform';
export interface MarkdownProps extends React.PropsWithChildren {

@@ -7,8 +7,7 @@ children: string;

markdownCustomStyles?: StylesType;
showDataId?: boolean;
}
export declare const Markdown: {
({ children, markdownContainerStyles, markdownCustomStyles, showDataId, ...props }: React.PropsWithChildren<MarkdownProps>): import("react/jsx-runtime").JSX.Element;
({ children, markdownContainerStyles, markdownCustomStyles, ...props }: React.PropsWithChildren<MarkdownProps>): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
//# sourceMappingURL=markdown.d.ts.map

@@ -16,9 +16,8 @@ "use strict";

const jsx_runtime_1 = require("react/jsx-runtime");
const transform_1 = require("./transform");
const md_to_react_email_1 = require("md-to-react-email");
const Markdown = (_a) => {
var { children, markdownContainerStyles, markdownCustomStyles, showDataId = false } = _a, props = __rest(_a, ["children", "markdownContainerStyles", "markdownCustomStyles", "showDataId"]);
const parsedMarkdown = (0, transform_1.parseMarkdownToJSX)({
var { children, markdownContainerStyles, markdownCustomStyles } = _a, props = __rest(_a, ["children", "markdownContainerStyles", "markdownCustomStyles"]);
const parsedMarkdown = (0, md_to_react_email_1.parseMarkdownToJSX)({
customStyles: markdownCustomStyles,
markdown: children,
withDataAttr: showDataId
markdown: children
});

@@ -25,0 +24,0 @@ return ((0, jsx_runtime_1.jsx)("div", Object.assign({}, props, { "data-id": "@jsx-email/markdown", style: markdownContainerStyles, dangerouslySetInnerHTML: { __html: parsedMarkdown } })));

{
"name": "@jsx-email/markdown",
"version": "2.0.0",
"version": "2.0.1",
"publishConfig": {

@@ -37,3 +37,3 @@ "access": "public"

"dependencies": {
"marked": "7.0.4"
"md-to-react-email": "5.0.0"
},

@@ -40,0 +40,0 @@ "types": "./dist/index.d.ts",

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