@t8/docsgen 0.1.69 → 0.1.70
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 +6 -0
- package/package.json +1 -1
- package/src/bin/getParsedContent.ts +15 -0
package/dist/bin.js
CHANGED
|
@@ -588,6 +588,12 @@ async function getParsedContent(ctx) {
|
|
|
588
588
|
descriptionNote = intro;
|
|
589
589
|
intro = [];
|
|
590
590
|
}
|
|
591
|
+
for (let i = 0; i < intro.length; i++) {
|
|
592
|
+
if (intro[i].includes("<br>") && intro[i].startsWith("<p>") && intro[i].endsWith("</p>")) {
|
|
593
|
+
let s = intro[i].slice(3, -4).split("<br>").join('</span><br><span class="li">');
|
|
594
|
+
intro[i] = `<p><span class="li">${s}</span></p>`;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
591
597
|
return {
|
|
592
598
|
badges: postprocessBadges(joinLines(badges)),
|
|
593
599
|
title,
|
package/package.json
CHANGED
|
@@ -209,6 +209,21 @@ export async function getParsedContent(ctx: Context) {
|
|
|
209
209
|
intro = [];
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
+
for (let i = 0; i < intro.length; i++) {
|
|
213
|
+
if (
|
|
214
|
+
intro[i].includes("<br>") &&
|
|
215
|
+
intro[i].startsWith("<p>") &&
|
|
216
|
+
intro[i].endsWith("</p>")
|
|
217
|
+
) {
|
|
218
|
+
let s = intro[i]
|
|
219
|
+
.slice(3, -4)
|
|
220
|
+
.split("<br>")
|
|
221
|
+
.join('</span><br><span class="li">');
|
|
222
|
+
|
|
223
|
+
intro[i] = `<p><span class="li">${s}</span></p>`;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
212
227
|
return {
|
|
213
228
|
badges: postprocessBadges(joinLines(badges)),
|
|
214
229
|
title,
|