@readme/markdown 6.75.0-beta.39 → 6.75.0-beta.40
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 +8 -16
- package/dist/main.node.js +8 -16
- package/dist/processor/compile/callout.d.ts +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -78620,24 +78620,16 @@ const readmeComponents = (opts) => () => tree => {
|
|
|
78620
78620
|
;// CONCATENATED MODULE: ./processor/compile/callout.ts
|
|
78621
78621
|
|
|
78622
78622
|
const callout = (node, _, state, info) => {
|
|
78623
|
-
const tracker = state.createTracker(info);
|
|
78624
78623
|
const exit = state.enter(NodeTypes.callout);
|
|
78625
|
-
state.
|
|
78626
|
-
|
|
78627
|
-
|
|
78624
|
+
const tracker = state.createTracker(info);
|
|
78625
|
+
tracker.move('> ');
|
|
78626
|
+
tracker.shift(2);
|
|
78627
|
+
const map = (line, index, blank) => {
|
|
78628
|
+
return `>${index === 0 ? ` ${node.data.hProperties.icon}` : ''}${blank ? '' : ' '}${line}`;
|
|
78629
|
+
};
|
|
78630
|
+
const value = state.indentLines(state.containerFlow(node, tracker.current()), map);
|
|
78628
78631
|
exit();
|
|
78629
|
-
|
|
78630
|
-
if (lines.length > 1) {
|
|
78631
|
-
const [first, ...rest] = lines;
|
|
78632
|
-
lines = [first, '', ...rest];
|
|
78633
|
-
}
|
|
78634
|
-
let content = lines
|
|
78635
|
-
.map((line, index) => (index > 0 ? `>${line.length > 0 ? ' ' : ''}${line}` : line))
|
|
78636
|
-
.join('\n');
|
|
78637
|
-
if (content.match(/^[^\n]/))
|
|
78638
|
-
content = ' ' + content;
|
|
78639
|
-
const block = `> ${node.data.hProperties.icon}${content}`;
|
|
78640
|
-
return block;
|
|
78632
|
+
return value;
|
|
78641
78633
|
};
|
|
78642
78634
|
/* harmony default export */ const compile_callout = (callout);
|
|
78643
78635
|
|
package/dist/main.node.js
CHANGED
|
@@ -80760,24 +80760,16 @@ const readmeComponents = (opts) => () => tree => {
|
|
|
80760
80760
|
;// CONCATENATED MODULE: ./processor/compile/callout.ts
|
|
80761
80761
|
|
|
80762
80762
|
const callout = (node, _, state, info) => {
|
|
80763
|
-
const tracker = state.createTracker(info);
|
|
80764
80763
|
const exit = state.enter(NodeTypes.callout);
|
|
80765
|
-
state.
|
|
80766
|
-
|
|
80767
|
-
|
|
80764
|
+
const tracker = state.createTracker(info);
|
|
80765
|
+
tracker.move('> ');
|
|
80766
|
+
tracker.shift(2);
|
|
80767
|
+
const map = (line, index, blank) => {
|
|
80768
|
+
return `>${index === 0 ? ` ${node.data.hProperties.icon}` : ''}${blank ? '' : ' '}${line}`;
|
|
80769
|
+
};
|
|
80770
|
+
const value = state.indentLines(state.containerFlow(node, tracker.current()), map);
|
|
80768
80771
|
exit();
|
|
80769
|
-
|
|
80770
|
-
if (lines.length > 1) {
|
|
80771
|
-
const [first, ...rest] = lines;
|
|
80772
|
-
lines = [first, '', ...rest];
|
|
80773
|
-
}
|
|
80774
|
-
let content = lines
|
|
80775
|
-
.map((line, index) => (index > 0 ? `>${line.length > 0 ? ' ' : ''}${line}` : line))
|
|
80776
|
-
.join('\n');
|
|
80777
|
-
if (content.match(/^[^\n]/))
|
|
80778
|
-
content = ' ' + content;
|
|
80779
|
-
const block = `> ${node.data.hProperties.icon}${content}`;
|
|
80780
|
-
return block;
|
|
80772
|
+
return value;
|
|
80781
80773
|
};
|
|
80782
80774
|
/* harmony default export */ const compile_callout = (callout);
|
|
80783
80775
|
|
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.40",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"browser": "dist/main.js",
|