@abraca/convert 2.19.0 → 2.20.0
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.
|
@@ -442,9 +442,9 @@ function parseBlocks(markdown) {
|
|
|
442
442
|
i++;
|
|
443
443
|
continue;
|
|
444
444
|
}
|
|
445
|
-
if (line.startsWith(">
|
|
445
|
+
if (line.startsWith(">")) {
|
|
446
446
|
const bqLines = [];
|
|
447
|
-
while (i < lines.length &&
|
|
447
|
+
while (i < lines.length && lines[i].startsWith(">")) {
|
|
448
448
|
bqLines.push(lines[i].replace(/^>\s?/, ""));
|
|
449
449
|
i++;
|
|
450
450
|
}
|
|
@@ -702,6 +702,13 @@ function parseBlocks(markdown) {
|
|
|
702
702
|
type: "paragraph",
|
|
703
703
|
text: paraLines.join(" ")
|
|
704
704
|
});
|
|
705
|
+
else {
|
|
706
|
+
blocks.push({
|
|
707
|
+
type: "paragraph",
|
|
708
|
+
text: line
|
|
709
|
+
});
|
|
710
|
+
i++;
|
|
711
|
+
}
|
|
705
712
|
}
|
|
706
713
|
return blocks;
|
|
707
714
|
}
|