@t8/docsgen 0.1.69 → 0.1.71

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 CHANGED
@@ -588,6 +588,15 @@ 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].replace(
594
+ /<br>\r?\n(\s*)/g,
595
+ '</span><br>$1<span class="li">'
596
+ );
597
+ intro[i] = `<p><span class="li">${s}</span></p>`;
598
+ }
599
+ }
591
600
  return {
592
601
  badges: postprocessBadges(joinLines(badges)),
593
602
  title,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8/docsgen",
3
- "version": "0.1.69",
3
+ "version": "0.1.71",
4
4
  "description": "",
5
5
  "main": "dist/bin.js",
6
6
  "bin": {
@@ -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].replace(
219
+ /<br>\r?\n(\s*)/g,
220
+ '</span><br>$1<span class="li">',
221
+ );
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,