@readme/markdown 6.75.0-beta.41 → 6.75.0-beta.42
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
|
@@ -78693,11 +78693,14 @@ const compile_image_image = (node) => {
|
|
|
78693
78693
|
;// CONCATENATED MODULE: ./processor/compile/compatibility.ts
|
|
78694
78694
|
|
|
78695
78695
|
const compatibility = (node) => {
|
|
78696
|
+
var _a, _b;
|
|
78696
78697
|
switch (node.type) {
|
|
78697
78698
|
case NodeTypes.variable:
|
|
78698
78699
|
return `<Variable name="${node.text}" />`;
|
|
78699
78700
|
case NodeTypes.glossary:
|
|
78700
|
-
|
|
78701
|
+
// @ts-expect-error
|
|
78702
|
+
const term = ((_b = (_a = node.data) === null || _a === void 0 ? void 0 : _a.hProperties) === null || _b === void 0 ? void 0 : _b.term) || node.children[0].value;
|
|
78703
|
+
return `<Glossary>${term}</Glossary>`;
|
|
78701
78704
|
case NodeTypes.reusableContent:
|
|
78702
78705
|
return `<${node.tag} />`;
|
|
78703
78706
|
case 'html':
|
package/dist/main.node.js
CHANGED
|
@@ -80833,11 +80833,14 @@ const compile_image_image = (node) => {
|
|
|
80833
80833
|
;// CONCATENATED MODULE: ./processor/compile/compatibility.ts
|
|
80834
80834
|
|
|
80835
80835
|
const compatibility = (node) => {
|
|
80836
|
+
var _a, _b;
|
|
80836
80837
|
switch (node.type) {
|
|
80837
80838
|
case NodeTypes.variable:
|
|
80838
80839
|
return `<Variable name="${node.text}" />`;
|
|
80839
80840
|
case NodeTypes.glossary:
|
|
80840
|
-
|
|
80841
|
+
// @ts-expect-error
|
|
80842
|
+
const term = ((_b = (_a = node.data) === null || _a === void 0 ? void 0 : _a.hProperties) === null || _b === void 0 ? void 0 : _b.term) || node.children[0].value;
|
|
80843
|
+
return `<Glossary>${term}</Glossary>`;
|
|
80841
80844
|
case NodeTypes.reusableContent:
|
|
80842
80845
|
return `<${node.tag} />`;
|
|
80843
80846
|
case 'html':
|
|
@@ -10,6 +10,15 @@ type CompatNodes = {
|
|
|
10
10
|
term: string;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
+
} | {
|
|
14
|
+
type: NodeTypes.glossary;
|
|
15
|
+
data: {
|
|
16
|
+
hName: 'Glossary';
|
|
17
|
+
};
|
|
18
|
+
children: [{
|
|
19
|
+
type: 'text';
|
|
20
|
+
value: string;
|
|
21
|
+
}];
|
|
13
22
|
} | {
|
|
14
23
|
type: NodeTypes.reusableContent;
|
|
15
24
|
tag: string;
|
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.42",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"browser": "dist/main.js",
|