@readme/markdown 6.75.0-beta.54 → 6.75.0-beta.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54,7 +54,7 @@ const Embed = ({
|
|
|
54
54
|
return (
|
|
55
55
|
<div className={classes.join(' ')}>
|
|
56
56
|
{html ? (
|
|
57
|
-
<div className="embed-media" dangerouslySetInnerHTML={{ __html: html }} />
|
|
57
|
+
<div className="embed-media" dangerouslySetInnerHTML={{ __html: decodeURIComponent(html) }} />
|
|
58
58
|
) : (
|
|
59
59
|
<a className="embed-link" href={url} rel="noopener noreferrer" target="_blank">
|
|
60
60
|
{!image || <img alt={title} className="embed-img" loading={lazy ? 'lazy' : undefined} src={image} />}
|
package/dist/main.js
CHANGED
|
@@ -14319,7 +14319,7 @@ const Embed = (_a) => {
|
|
|
14319
14319
|
if (!providerName)
|
|
14320
14320
|
providerName = providerUrl;
|
|
14321
14321
|
const classes = ['embed', image ? 'embed_hasImg' : ''];
|
|
14322
|
-
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: classes.join(' ') }, html ? (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "embed-media", dangerouslySetInnerHTML: { __html: html } })) : (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("a", { className: "embed-link", href: url, rel: "noopener noreferrer", target: "_blank" },
|
|
14322
|
+
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: classes.join(' ') }, html ? (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "embed-media", dangerouslySetInnerHTML: { __html: decodeURIComponent(html) } })) : (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("a", { className: "embed-link", href: url, rel: "noopener noreferrer", target: "_blank" },
|
|
14323
14323
|
!image || external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("img", { alt: title, className: "embed-img", loading: lazy ? 'lazy' : undefined, src: image }),
|
|
14324
14324
|
title && title !== '@embed' ? (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "embed-body" },
|
|
14325
14325
|
!favicon || external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(Favicon, { alt: providerName, src: favicon }),
|
|
@@ -94228,6 +94228,8 @@ const compatibility = (node) => {
|
|
|
94228
94228
|
return `<${node.tag} />`;
|
|
94229
94229
|
case 'html':
|
|
94230
94230
|
return compatibility_html(node);
|
|
94231
|
+
case 'escape':
|
|
94232
|
+
return `\\${node.value}`;
|
|
94231
94233
|
default:
|
|
94232
94234
|
throw new Error('Unhandled node type!');
|
|
94233
94235
|
}
|
|
@@ -94256,6 +94258,7 @@ function compilers() {
|
|
|
94256
94258
|
[NodeTypes.variable]: compile_compatibility,
|
|
94257
94259
|
[NodeTypes.glossary]: compile_compatibility,
|
|
94258
94260
|
[NodeTypes.reusableContent]: compile_compatibility,
|
|
94261
|
+
escape: compile_compatibility,
|
|
94259
94262
|
html: compile_compatibility,
|
|
94260
94263
|
};
|
|
94261
94264
|
toMarkdownExtensions.push({ extensions: [{ handlers }] });
|
package/dist/main.node.js
CHANGED
|
@@ -9265,7 +9265,7 @@ const Embed = (_a) => {
|
|
|
9265
9265
|
if (!providerName)
|
|
9266
9266
|
providerName = providerUrl;
|
|
9267
9267
|
const classes = ['embed', image ? 'embed_hasImg' : ''];
|
|
9268
|
-
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: classes.join(' ') }, html ? (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "embed-media", dangerouslySetInnerHTML: { __html: html } })) : (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("a", { className: "embed-link", href: url, rel: "noopener noreferrer", target: "_blank" },
|
|
9268
|
+
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: classes.join(' ') }, html ? (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "embed-media", dangerouslySetInnerHTML: { __html: decodeURIComponent(html) } })) : (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("a", { className: "embed-link", href: url, rel: "noopener noreferrer", target: "_blank" },
|
|
9269
9269
|
!image || external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("img", { alt: title, className: "embed-img", loading: lazy ? 'lazy' : undefined, src: image }),
|
|
9270
9270
|
title && title !== '@embed' ? (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "embed-body" },
|
|
9271
9271
|
!favicon || external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(Favicon, { alt: providerName, src: favicon }),
|
|
@@ -95681,6 +95681,8 @@ const compatibility = (node) => {
|
|
|
95681
95681
|
return `<${node.tag} />`;
|
|
95682
95682
|
case 'html':
|
|
95683
95683
|
return compatibility_html(node);
|
|
95684
|
+
case 'escape':
|
|
95685
|
+
return `\\${node.value}`;
|
|
95684
95686
|
default:
|
|
95685
95687
|
throw new Error('Unhandled node type!');
|
|
95686
95688
|
}
|
|
@@ -95709,6 +95711,7 @@ function compilers() {
|
|
|
95709
95711
|
[NodeTypes.variable]: compile_compatibility,
|
|
95710
95712
|
[NodeTypes.glossary]: compile_compatibility,
|
|
95711
95713
|
[NodeTypes.reusableContent]: compile_compatibility,
|
|
95714
|
+
escape: compile_compatibility,
|
|
95712
95715
|
html: compile_compatibility,
|
|
95713
95716
|
};
|
|
95714
95717
|
toMarkdownExtensions.push({ extensions: [{ handlers }] });
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@readme/markdown",
|
|
3
3
|
"description": "ReadMe's React-based Markdown parser",
|
|
4
4
|
"author": "Rafe Goldberg <rafe@readme.io>",
|
|
5
|
-
"version": "6.75.0-beta.
|
|
5
|
+
"version": "6.75.0-beta.56",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"browser": "dist/main.js",
|