@markuplint/html-parser 5.4.0 → 5.5.0
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/CHANGELOG.md +11 -0
- package/lib/parser.js +3 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.5.0](https://github.com/markuplint/markuplint/compare/v5.4.0...v5.5.0) (2026-11-10)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **html-parser:** mask a leading BOM ([0b7a829](https://github.com/markuplint/markuplint/commit/0b7a829d6eb31023fcdbda444b026c783d48a5f0)), closes [#4488](https://github.com/markuplint/markuplint/issues/4488)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **ml-ast:** split the parse error code into parse5's and a framework parser's ([0bef7e8](https://github.com/markuplint/markuplint/commit/0bef7e890bb76e8500d59b5bbc4f868d76d2ef55))
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [5.4.0](https://github.com/markuplint/markuplint/compare/v5.3.0...v5.4.0) (2026-10-29)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @markuplint/html-parser
|
package/lib/parser.js
CHANGED
|
@@ -18,7 +18,9 @@ export class HtmlParser extends Parser {
|
|
|
18
18
|
* @see https://html.spec.whatwg.org/multipage/parsing.html#rawtext-state
|
|
19
19
|
*/
|
|
20
20
|
constructor(options) {
|
|
21
|
-
super(
|
|
21
|
+
super(
|
|
22
|
+
// parse5 takes a leading BOM for text (so `<html><head><body>` open implicitly)
|
|
23
|
+
{ ...options, rawTextElements: ['style', 'script', 'xmp'], leadingBom: 'mask' }, {
|
|
22
24
|
startsHeadTagOrBodyTag: null,
|
|
23
25
|
afterPosition: {
|
|
24
26
|
endOffset: 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/html-parser",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"description": "HTML parser for markuplint",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"clean": "tsc --build --clean tsconfig.build.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@markuplint/ml-ast": "5.
|
|
35
|
-
"@markuplint/parser-utils": "5.
|
|
36
|
-
"parse5": "^8.0
|
|
34
|
+
"@markuplint/ml-ast": "5.5.0",
|
|
35
|
+
"@markuplint/parser-utils": "5.5.0",
|
|
36
|
+
"parse5": "^8.1.0",
|
|
37
37
|
"type-fest": "^5.10.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "fedebcfd56eaec4642e68643b2f9e10750d810e1"
|
|
40
40
|
}
|