@markuplint/html-parser
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -9,2 +9,3 @@ "use strict"; | ||
const flatten_nodes_1 = require("./flatten-nodes"); | ||
const parser_utils_1 = require("@markuplint/parser-utils"); | ||
const is_document_fragment_1 = __importDefault(require("./is-document-fragment")); | ||
@@ -14,3 +15,6 @@ const parse5_1 = __importDefault(require("parse5")); | ||
const P5_OPTIONS = { sourceCodeLocationInfo: true }; | ||
exports.parse = (rawCode, offsetOffset = 0, offsetLine = 0, offsetColumn = 0) => { | ||
const parse = (rawCode, offsetOffset = 0, offsetLine = 0, offsetColumn = 0, isIgnoringFrontMatter) => { | ||
if (isIgnoringFrontMatter) { | ||
rawCode = parser_utils_1.ignoreFrontMatter(rawCode); | ||
} | ||
const isFragment = is_document_fragment_1.default(rawCode); | ||
@@ -26,2 +30,3 @@ const doc = isFragment | ||
}; | ||
exports.parse = parse; | ||
function traverse(rootNode, parentNode, rawHtml, offsetOffset, offsetLine, offsetColumn) { | ||
@@ -28,0 +33,0 @@ const nodeList = []; |
{ | ||
"name": "@markuplint/html-parser", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "HTML parser for markuplint", | ||
@@ -23,6 +23,7 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"dependencies": { | ||
"@markuplint/ml-ast": "^1.1.0", | ||
"@markuplint/ml-ast": "^1.2.0", | ||
"@markuplint/parser-utils": "^1.1.0", | ||
"parse5": "^6.0.1" | ||
}, | ||
"gitHead": "90b7f86d6708e2003cc33ca7aa7da327d590f6b4" | ||
"gitHead": "1806f99b6429b73ce498f6ecf641efc2400f47dd" | ||
} |
@@ -9,2 +9,5 @@ { | ||
"path": "../ml-ast" | ||
}, | ||
{ | ||
"path": "../parser-utils" | ||
} | ||
@@ -11,0 +14,0 @@ ], |
Sorry, the diff of this file is not supported yet
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
937
275586
3
1
40
+ Added@markuplint/parser-utils@1.6.3(transitive)
+ Addeduuid@8.3.2(transitive)
Updated@markuplint/ml-ast@^1.2.0