@incremark/core 0.3.10 → 0.4.0-alpha.2
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/engines/marked/index.js +0 -12
- package/dist/engines/marked/index.js.map +1 -1
- package/dist/index.js +1 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1840,18 +1840,6 @@ function transformOptimisticReference(token, ctx) {
|
|
|
1840
1840
|
}]
|
|
1841
1841
|
};
|
|
1842
1842
|
}
|
|
1843
|
-
if (token.referenceType === "shortcut") {
|
|
1844
|
-
const inlineLinkMatch = token.text.match(/^\[((?:\[[^\]]*\]|[^\[\]])*)\]\(([^)]*)\)$/);
|
|
1845
|
-
const inlineImageMatch = token.text.match(/^!\[((?:\[[^\]]*\]|[^\[\]])*)\]\(([^)]*)\)$/);
|
|
1846
|
-
if (inlineLinkMatch || inlineImageMatch) {
|
|
1847
|
-
const innerChildren = ctx.transformInline(new Lexer().inlineTokens(token.text));
|
|
1848
|
-
return [
|
|
1849
|
-
{ type: "text", value: "[" },
|
|
1850
|
-
...innerChildren,
|
|
1851
|
-
{ type: "text", value: "]" }
|
|
1852
|
-
];
|
|
1853
|
-
}
|
|
1854
|
-
}
|
|
1855
1843
|
const labelChildren = ctx.transformInline(new Lexer().inlineTokens(token.text));
|
|
1856
1844
|
return {
|
|
1857
1845
|
type: "linkReference",
|
|
@@ -2761,11 +2749,7 @@ var IncremarkParser = class {
|
|
|
2761
2749
|
this.astBuilder.updateOptions(options);
|
|
2762
2750
|
}
|
|
2763
2751
|
} else {
|
|
2764
|
-
|
|
2765
|
-
this.astBuilder = new MarkedAstBuilder(this.options);
|
|
2766
|
-
} else {
|
|
2767
|
-
this.astBuilder.updateOptions(options);
|
|
2768
|
-
}
|
|
2752
|
+
this.astBuilder.updateOptions(options);
|
|
2769
2753
|
}
|
|
2770
2754
|
}
|
|
2771
2755
|
};
|