@t8/docsgen 0.1.21 → 0.1.23

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
@@ -548,7 +548,7 @@ function getTitle(ctx, { cover, originalContent, withPackageURL } = {}) {
548
548
 
549
549
  // src/bin/toFileContent.ts
550
550
  function toFileContent(x) {
551
- return `${x.replace(/\s+(<\/(head|body)>)/g, "\n$1").trim()}
551
+ return `${x.replace(/\s+(\r?\n *<\/?(script|link|head|body|html)>)/g, "$1").trim()}
552
552
  `;
553
553
  }
554
554
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8/docsgen",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "",
5
5
  "main": "dist/bin.js",
6
6
  "bin": {
@@ -1,3 +1,3 @@
1
1
  export function toFileContent(x: string) {
2
- return `${x.replace(/\s+(<\/(head|body)>)/g, "\n$1").trim()}\n`;
2
+ return `${x.replace(/\s+(\r?\n *<\/?(script|link|head|body|html)>)/g, "$1").trim()}\n`;
3
3
  }