@jsx-email/markdown
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -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 |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9159
15
78
+ Addedmd-to-react-email@5.0.0
+ Addedmd-to-react-email@5.0.0(transitive)
- Removedmarked@7.0.4