@honkit/html 6.0.0 → 6.0.2
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/lib/dom.d.ts.map +1 -1
- package/lib/dom.js +0 -4
- package/package.json +2 -2
package/lib/dom.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../src/dom.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../src/dom.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAOnC;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAEzD;AACD;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAKtD;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,KAAA,OAGrB;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,KAAA,OAS3B;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,GAAG,KAAA,EAAE,CAAC,KAAA,OAS7B"}
|
package/lib/dom.js
CHANGED
|
@@ -38,8 +38,6 @@ const cheerio = __importStar(require("cheerio"));
|
|
|
38
38
|
* @param html
|
|
39
39
|
*/
|
|
40
40
|
function loadHtml(html) {
|
|
41
|
-
// https://github.com/cheeriojs/cheerio/issues/1260
|
|
42
|
-
// @ts-expect-error -- _useHtmlParser2 is not in the types
|
|
43
41
|
return cheerio.load(html, { _useHtmlParser2: true });
|
|
44
42
|
}
|
|
45
43
|
/**
|
|
@@ -49,8 +47,6 @@ function loadHtml(html) {
|
|
|
49
47
|
@return {cheerio.Root}
|
|
50
48
|
*/
|
|
51
49
|
function parse(html) {
|
|
52
|
-
// https://github.com/cheeriojs/cheerio/issues/1260
|
|
53
|
-
// @ts-expect-error -- _useHtmlParser2 is not in the types
|
|
54
50
|
const $ = cheerio.load(html, { _useHtmlParser2: true });
|
|
55
51
|
const $el = $("html, body").first();
|
|
56
52
|
return ($el.length > 0 ? $el : $);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@honkit/html",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Parse HTML content for gitbook",
|
|
5
5
|
"homepage": "https://github.com/honkit/honkit",
|
|
6
6
|
"bugs": {
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "9dcd51c588177ee3a684788c633a67b82dea82a5"
|
|
55
55
|
}
|