@t8/docsgen 0.1.70 → 0.1.72
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/bin.js +4 -1
- package/package.json +1 -1
- package/src/bin/getParsedContent.ts +4 -4
package/dist/bin.js
CHANGED
|
@@ -590,7 +590,10 @@ async function getParsedContent(ctx) {
|
|
|
590
590
|
}
|
|
591
591
|
for (let i = 0; i < intro.length; i++) {
|
|
592
592
|
if (intro[i].includes("<br>") && intro[i].startsWith("<p>") && intro[i].endsWith("</p>")) {
|
|
593
|
-
let s = intro[i].
|
|
593
|
+
let s = intro[i].replace(
|
|
594
|
+
/<br>(\r?\n)?(\s*)/g,
|
|
595
|
+
'</span><br>$1$2<span class="li">'
|
|
596
|
+
);
|
|
594
597
|
intro[i] = `<p><span class="li">${s}</span></p>`;
|
|
595
598
|
}
|
|
596
599
|
}
|
package/package.json
CHANGED
|
@@ -215,10 +215,10 @@ export async function getParsedContent(ctx: Context) {
|
|
|
215
215
|
intro[i].startsWith("<p>") &&
|
|
216
216
|
intro[i].endsWith("</p>")
|
|
217
217
|
) {
|
|
218
|
-
let s = intro[i]
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
218
|
+
let s = intro[i].replace(
|
|
219
|
+
/<br>(\r?\n)?(\s*)/g,
|
|
220
|
+
'</span><br>$1$2<span class="li">',
|
|
221
|
+
);
|
|
222
222
|
|
|
223
223
|
intro[i] = `<p><span class="li">${s}</span></p>`;
|
|
224
224
|
}
|