@markuplint/html-parser
Advanced tools
Comparing version 3.0.0-alpha.6 to 3.0.0-alpha.27
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'; | ||
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.6", | ||
"version": "3.0.0-alpha.27+b5eef04a", | ||
"description": "HTML parser for markuplint", | ||
@@ -20,8 +20,8 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"dependencies": { | ||
"@markuplint/ml-ast": "3.0.0-alpha.6", | ||
"@markuplint/parser-utils": "3.0.0-alpha.6", | ||
"parse5": "6", | ||
"tslib": "^2.4.0" | ||
"@markuplint/ml-ast": "3.0.0-alpha.27+b5eef04a", | ||
"@markuplint/parser-utils": "3.0.0-alpha.27+b5eef04a", | ||
"parse5": "7.1.2", | ||
"tslib": "^2.4.1" | ||
}, | ||
"gitHead": "b185a06d4ea09a1bf32458f7be4abe510eb57b89" | ||
"gitHead": "b5eef04a99177b25dccb164b486fba9fa01893ae" | ||
} |
# @markuplint/html-parser | ||
[![npm version](https://badge.fury.io/js/%40markuplint%2Fhtml-parser.svg)](https://www.npmjs.com/package/@markuplint/html-parser) | ||
[![Build Status](https://travis-ci.org/markuplint/markuplint.svg?branch=main)](https://travis-ci.org/markuplint/markuplint) | ||
[![Coverage Status](https://coveralls.io/repos/github/markuplint/markuplint/badge.svg?branch=main)](https://coveralls.io/github/markuplint/markuplint?branch=main) | ||
## Install | ||
```sh | ||
[`markuplint`](https://www.npmjs.com/package/markuplint) package includes this package. | ||
<details> | ||
<summary>If you are installing purposely, how below:</summary> | ||
```shell | ||
$ npm install @markuplint/html-parser | ||
@@ -14,1 +17,3 @@ | ||
``` | ||
</details> |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
19
42636
27
986
1
+ Addedentities@4.5.0(transitive)
+ Addedparse5@7.1.2(transitive)
- Removed@markuplint/ml-ast@3.0.0-alpha.6(transitive)
- Removed@markuplint/parser-utils@3.0.0-alpha.6(transitive)
- Removed@markuplint/types@3.0.0-alpha.6(transitive)
- Removedbcp-47@1.0.8(transitive)
- Removedcss-tree@1.1.3(transitive)
- Removeddebug@4.4.0(transitive)
- Removedis-alphabetical@1.0.4(transitive)
- Removedis-alphanumerical@1.0.4(transitive)
- Removedis-decimal@1.0.4(transitive)
- Removedleven@3.1.0(transitive)
- Removedmdn-data@2.0.14(transitive)
- Removedms@2.1.3(transitive)
- Removedparse5@6.0.1(transitive)
- Removedsource-map@0.6.1(transitive)
- Removeduuid@8.3.2(transitive)
- Removedwhatwg-mimetype@2.3.0(transitive)
Updatedparse5@7.1.2
Updatedtslib@^2.4.1