@markuplint/html-parser
Advanced tools
Comparing version 3.0.0-alpha.1 to 3.0.0-alpha.2
import type { MLASTNode } from '@markuplint/ml-ast'; | ||
export declare function createTree(rawCode: string, isFragment: boolean, offsetOffset: number, offsetLine: number, offsetColumn: number): MLASTNode[]; | ||
export declare function createTree( | ||
rawCode: string, | ||
isFragment: boolean, | ||
offsetOffset: number, | ||
offsetLine: number, | ||
offsetColumn: number, | ||
): MLASTNode[]; |
import type { MLASTNode } from '@markuplint/ml-ast'; | ||
export declare function isStartsHeadTagOrBodyTag(rawCode: string): boolean; | ||
export declare function optimizeStartsHeadTagOrBodyTagSetup(rawCode: string): { | ||
code: string; | ||
heads: string[]; | ||
bodies: string[]; | ||
code: string; | ||
heads: string[]; | ||
bodies: string[]; | ||
}; | ||
export declare function optimizeStartsHeadTagOrBodyTagResume(nodeList: MLASTNode[], replacements: ReturnType<typeof optimizeStartsHeadTagOrBodyTagSetup>): void; | ||
export declare function optimizeStartsHeadTagOrBodyTagResume( | ||
nodeList: MLASTNode[], | ||
replacements: ReturnType<typeof optimizeStartsHeadTagOrBodyTagSetup>, | ||
): void; |
import type { MLASTAttr, MLToken } from '@markuplint/ml-ast'; | ||
declare type TagTokens = { | ||
tagName: string; | ||
attrs: MLASTAttr[]; | ||
selfClosingSolidus: MLToken; | ||
endSpace: MLToken; | ||
tagName: string; | ||
attrs: MLASTAttr[]; | ||
selfClosingSolidus: MLToken; | ||
endSpace: MLToken; | ||
}; | ||
export default function parseRawTag(raw: string, startLine: number, startCol: number, startOffset: number, offsetOffset?: number, offsetLine?: number, offsetColumn?: number): TagTokens; | ||
export default function parseRawTag( | ||
raw: string, | ||
startLine: number, | ||
startCol: number, | ||
startOffset: number, | ||
offsetOffset?: number, | ||
offsetLine?: number, | ||
offsetColumn?: number, | ||
): TagTokens; | ||
export {}; |
export interface N { | ||
type: 'text' | 'starttag' | 'endtag' | 'comment' | 'boguscomment'; | ||
raw: string; | ||
line: number; | ||
col: number; | ||
type: 'text' | 'starttag' | 'endtag' | 'comment' | 'boguscomment'; | ||
raw: string; | ||
line: number; | ||
col: number; | ||
} | ||
export default function tagSplitter(raw: string, line: number, col: number): N[]; |
{ | ||
"name": "@markuplint/html-parser", | ||
"version": "3.0.0-alpha.1", | ||
"version": "3.0.0-alpha.2", | ||
"description": "HTML parser for markuplint", | ||
@@ -20,8 +20,8 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"dependencies": { | ||
"@markuplint/ml-ast": "3.0.0-alpha.1", | ||
"@markuplint/parser-utils": "3.0.0-alpha.1", | ||
"@markuplint/ml-ast": "3.0.0-alpha.2", | ||
"@markuplint/parser-utils": "3.0.0-alpha.2", | ||
"parse5": "6", | ||
"tslib": "^2.4.0" | ||
}, | ||
"gitHead": "56de89456146a06777eb5b6d4e8ba456147dd18b" | ||
"gitHead": "830bf8187b81bf5ca2f5f09b6f85a98395a58bdb" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1006
98856
+ Added@markuplint/ml-ast@3.0.0-alpha.2(transitive)
+ Added@markuplint/parser-utils@3.0.0-alpha.2(transitive)
+ Added@markuplint/types@3.0.0-alpha.2(transitive)
- Removed@markuplint/ml-ast@3.0.0-alpha.1(transitive)
- Removed@markuplint/parser-utils@3.0.0-alpha.1(transitive)
- Removed@markuplint/types@3.0.0-alpha.1(transitive)