@t8/docsgen 0.1.71 → 0.1.73
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 +1 -4
- package/package.json +1 -1
- package/src/bin/getParsedContent.ts +3 -4
package/dist/bin.js
CHANGED
|
@@ -590,10 +590,7 @@ 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].replace(
|
|
594
|
-
/<br>\r?\n(\s*)/g,
|
|
595
|
-
'</span><br>$1<span class="li">'
|
|
596
|
-
);
|
|
593
|
+
let s = intro[i].slice(3, -4).replace(/<br>(\r?\n)?(\s*)/g, '</span><br>$1$2<span class="li">');
|
|
597
594
|
intro[i] = `<p><span class="li">${s}</span></p>`;
|
|
598
595
|
}
|
|
599
596
|
}
|
package/package.json
CHANGED
|
@@ -215,10 +215,9 @@ 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
|
-
'</span><br>$1<span class="li">'
|
|
221
|
-
);
|
|
218
|
+
let s = intro[i]
|
|
219
|
+
.slice(3, -4)
|
|
220
|
+
.replace(/<br>(\r?\n)?(\s*)/g, '</span><br>$1$2<span class="li">');
|
|
222
221
|
|
|
223
222
|
intro[i] = `<p><span class="li">${s}</span></p>`;
|
|
224
223
|
}
|