@markuplint/html-parser 3.11.0 → 3.13.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/lib/create-tree.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import type { MLASTNode } from '@markuplint/ml-ast';
|
|
2
|
-
export declare function createTree(
|
|
2
|
+
export declare function createTree(
|
|
3
|
+
rawCode: string,
|
|
4
|
+
isFragment: boolean,
|
|
5
|
+
offsetOffset: number,
|
|
6
|
+
offsetLine: number,
|
|
7
|
+
offsetColumn: number,
|
|
8
|
+
): MLASTNode[];
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { MLASTNode } from '@markuplint/ml-ast';
|
|
2
2
|
export declare function isStartsHeadTagOrBodyTag(rawCode: string): boolean;
|
|
3
3
|
export declare function optimizeStartsHeadTagOrBodyTagSetup(rawCode: string): {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
code: string;
|
|
5
|
+
heads: string[];
|
|
6
|
+
bodies: string[];
|
|
7
7
|
};
|
|
8
|
-
export declare function optimizeStartsHeadTagOrBodyTagResume(
|
|
8
|
+
export declare function optimizeStartsHeadTagOrBodyTagResume(
|
|
9
|
+
nodeList: MLASTNode[],
|
|
10
|
+
replacements: ReturnType<typeof optimizeStartsHeadTagOrBodyTagSetup>,
|
|
11
|
+
): void;
|
package/lib/parse-raw-tag.d.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import type { MLASTAttr, MLToken } from '@markuplint/ml-ast';
|
|
2
2
|
type TagTokens = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
tagName: string;
|
|
4
|
+
attrs: MLASTAttr[];
|
|
5
|
+
selfClosingSolidus: MLToken;
|
|
6
|
+
endSpace: MLToken;
|
|
7
7
|
};
|
|
8
|
-
export default function parseRawTag(
|
|
8
|
+
export default function parseRawTag(
|
|
9
|
+
raw: string,
|
|
10
|
+
startLine: number,
|
|
11
|
+
startCol: number,
|
|
12
|
+
startOffset: number,
|
|
13
|
+
offsetOffset?: number,
|
|
14
|
+
offsetLine?: number,
|
|
15
|
+
offsetColumn?: number,
|
|
16
|
+
): TagTokens;
|
|
9
17
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/html-parser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.13.0",
|
|
4
4
|
"description": "HTML parser for markuplint",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@markuplint/ml-ast": "3.2.0",
|
|
24
|
-
"@markuplint/parser-utils": "3.
|
|
24
|
+
"@markuplint/parser-utils": "3.13.0",
|
|
25
25
|
"parse5": "7.1.2",
|
|
26
26
|
"tslib": "^2.6.2",
|
|
27
|
-
"type-fest": "^4.
|
|
27
|
+
"type-fest": "^4.8.2"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "b37b749d7ac0f9e6cbd022ee7031bc020c6677d3"
|
|
30
30
|
}
|