@t8/docsgen 0.1.60 → 0.1.62

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
@@ -582,6 +582,7 @@ async function getParsedContent(ctx) {
582
582
  intro.unshift(description[0]);
583
583
  description = [];
584
584
  }
585
+ if (intro.at(-1) === "<hr>") intro.pop();
585
586
  return {
586
587
  badges: postprocessBadges(joinLines(badges)),
587
588
  title,
@@ -798,7 +799,7 @@ ${features ? `
798
799
  </main>
799
800
  </div>
800
801
 
801
- ${[description, features].some((s) => s.includes("<pre><code ")) ? getInjectedContent(ctx, "index", ":has-code") || defaultCodeStyleContent : ""}
802
+ ${[description, intro, features].some((s) => s.includes("<pre><code ")) ? getInjectedContent(ctx, "index", ":has-code") || defaultCodeStyleContent : ""}
802
803
  ${counterContent}
803
804
  ${getInjectedContent(ctx, "index", "body")}
804
805
  </body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8/docsgen",
3
- "version": "0.1.60",
3
+ "version": "0.1.62",
4
4
  "description": "",
5
5
  "main": "dist/bin.js",
6
6
  "bin": {
@@ -201,6 +201,8 @@ export async function getParsedContent(ctx: Context) {
201
201
  description = [];
202
202
  }
203
203
 
204
+ if (intro.at(-1) === "<hr>") intro.pop();
205
+
204
206
  return {
205
207
  badges: postprocessBadges(joinLines(badges)),
206
208
  title,
@@ -232,7 +232,7 @@ ${
232
232
  </div>
233
233
 
234
234
  ${
235
- [description, features].some((s) => s.includes("<pre><code "))
235
+ [description, intro, features].some((s) => s.includes("<pre><code "))
236
236
  ? getInjectedContent(ctx, "index", ":has-code") || defaultCodeStyleContent
237
237
  : ""
238
238
  }