@markuplint/html-parser 5.0.0-rc.1 → 5.0.0-rc.4
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 +16 -0
- package/lib/optimize-starts-head-or-body.js +1 -0
- package/package.json +10 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.0.0-rc.4](https://github.com/markuplint/markuplint/compare/v5.0.0-rc.3...v5.0.0-rc.4) (2026-04-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @markuplint/html-parser
|
|
9
|
+
|
|
10
|
+
# [5.0.0-rc.3](https://github.com/markuplint/markuplint/compare/v5.0.0-rc.2...v5.0.0-rc.3) (2026-04-19)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @markuplint/html-parser
|
|
13
|
+
|
|
14
|
+
# [5.0.0-rc.2](https://github.com/markuplint/markuplint/compare/v5.0.0-rc.1...v5.0.0-rc.2) (2026-04-15)
|
|
15
|
+
|
|
16
|
+
- build!: remove ESLint and replace with oxlint ([1e0a337](https://github.com/markuplint/markuplint/commit/1e0a337707f76b903b16beeeb8c4d4fc0d8fc9e4))
|
|
17
|
+
|
|
18
|
+
### BREAKING CHANGES
|
|
19
|
+
|
|
20
|
+
- ESLint is no longer used. Use oxlint instead.
|
|
21
|
+
|
|
6
22
|
# [5.0.0-rc.1](https://github.com/markuplint/markuplint/compare/v5.0.0-rc.0...v5.0.0-rc.1) (2026-03-27)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @markuplint/html-parser
|
|
@@ -12,6 +12,7 @@ export function optimizeStartsHeadTagOrBodyTagSetup(rawCode) {
|
|
|
12
12
|
}
|
|
13
13
|
const heads = [];
|
|
14
14
|
const bodies = [];
|
|
15
|
+
// eslint-disable-next-line no-control-regex -- WHATWG HTML spec requires matching NULL character
|
|
15
16
|
const code = rawCode.replaceAll(/(?<=<\/?)(?:head|body)(?=[\0\t\n\f />])/gi, tag => {
|
|
16
17
|
const prefix = `x-${UNDUPLICATED_CHAR}`;
|
|
17
18
|
let name;
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/html-parser",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.4",
|
|
4
4
|
"description": "HTML parser for markuplint",
|
|
5
|
-
"repository":
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/markuplint/markuplint.git",
|
|
8
|
+
"directory": "packages/@markuplint/html-parser"
|
|
9
|
+
},
|
|
6
10
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"engines": {
|
|
@@ -27,10 +31,10 @@
|
|
|
27
31
|
"clean": "tsc --build --clean tsconfig.build.json"
|
|
28
32
|
},
|
|
29
33
|
"dependencies": {
|
|
30
|
-
"@markuplint/ml-ast": "5.0.0-rc.
|
|
31
|
-
"@markuplint/parser-utils": "5.0.0-rc.
|
|
34
|
+
"@markuplint/ml-ast": "5.0.0-rc.4",
|
|
35
|
+
"@markuplint/parser-utils": "5.0.0-rc.4",
|
|
32
36
|
"parse5": "8.0.0",
|
|
33
|
-
"type-fest": "5.
|
|
37
|
+
"type-fest": "5.6.0"
|
|
34
38
|
},
|
|
35
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "97a6339bbae23f556de5d307b3ce2ef7cfd9402d"
|
|
36
40
|
}
|