@readme/markdown 11.5.0 → 11.5.1
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.
package/dist/main.js
CHANGED
|
@@ -87760,14 +87760,14 @@ const migrateHtmlTags = () => (tree) => {
|
|
|
87760
87760
|
;// ./processor/transform/migrate-link-references.ts
|
|
87761
87761
|
|
|
87762
87762
|
|
|
87763
|
-
const migrateLinkReferences = () => {
|
|
87764
|
-
return (tree
|
|
87763
|
+
const migrateLinkReferences = ({ rdmd }) => {
|
|
87764
|
+
return (tree) => {
|
|
87765
87765
|
visit(tree, 'linkReference', (node, index, parent) => {
|
|
87766
87766
|
if (!('children' in parent))
|
|
87767
87767
|
return;
|
|
87768
87768
|
parent.children.splice(index, 1, {
|
|
87769
87769
|
type: NodeTypes.plain,
|
|
87770
|
-
value:
|
|
87770
|
+
value: rdmd.md(node).trim(),
|
|
87771
87771
|
});
|
|
87772
87772
|
});
|
|
87773
87773
|
};
|
|
@@ -87782,7 +87782,7 @@ const migrateLinkReferences = () => {
|
|
|
87782
87782
|
|
|
87783
87783
|
const migrate = (doc, { rdmd }) => {
|
|
87784
87784
|
const ast = lib_mdastV6(doc, { rdmd });
|
|
87785
|
-
return (lib_mdx(ast, { remarkTransformers: [migrate_callouts, migrate_link_references, migrate_html_tags], file: doc })
|
|
87785
|
+
return (lib_mdx(ast, { remarkTransformers: [migrate_callouts, [migrate_link_references, { rdmd }], migrate_html_tags], file: doc })
|
|
87786
87786
|
.replaceAll(/ /g, ' ')
|
|
87787
87787
|
// @note: I'm not sure what's happening, but I think mdx is converting an
|
|
87788
87788
|
// 'a' to 'a' as a means of escaping it. I think this helps with
|
package/dist/main.node.js
CHANGED
|
@@ -107971,14 +107971,14 @@ const migrateHtmlTags = () => (tree) => {
|
|
|
107971
107971
|
;// ./processor/transform/migrate-link-references.ts
|
|
107972
107972
|
|
|
107973
107973
|
|
|
107974
|
-
const migrateLinkReferences = () => {
|
|
107975
|
-
return (tree
|
|
107974
|
+
const migrateLinkReferences = ({ rdmd }) => {
|
|
107975
|
+
return (tree) => {
|
|
107976
107976
|
visit(tree, 'linkReference', (node, index, parent) => {
|
|
107977
107977
|
if (!('children' in parent))
|
|
107978
107978
|
return;
|
|
107979
107979
|
parent.children.splice(index, 1, {
|
|
107980
107980
|
type: NodeTypes.plain,
|
|
107981
|
-
value:
|
|
107981
|
+
value: rdmd.md(node).trim(),
|
|
107982
107982
|
});
|
|
107983
107983
|
});
|
|
107984
107984
|
};
|
|
@@ -107993,7 +107993,7 @@ const migrateLinkReferences = () => {
|
|
|
107993
107993
|
|
|
107994
107994
|
const migrate = (doc, { rdmd }) => {
|
|
107995
107995
|
const ast = lib_mdastV6(doc, { rdmd });
|
|
107996
|
-
return (lib_mdx(ast, { remarkTransformers: [migrate_callouts, migrate_link_references, migrate_html_tags], file: doc })
|
|
107996
|
+
return (lib_mdx(ast, { remarkTransformers: [migrate_callouts, [migrate_link_references, { rdmd }], migrate_html_tags], file: doc })
|
|
107997
107997
|
.replaceAll(/ /g, ' ')
|
|
107998
107998
|
// @note: I'm not sure what's happening, but I think mdx is converting an
|
|
107999
107999
|
// 'a' to 'a' as a means of escaping it. I think this helps with
|