@markuplint/parser-utils
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -32,3 +32,4 @@ "use strict"; | ||
const_1.MASK_CHAR.repeat((endTag || '').length); | ||
replaced = above + mask + (below || ''); | ||
const taggedMask = `<!${mask.slice(2).slice(0, -1)}>`; | ||
replaced = above + taggedMask + (below || ''); | ||
} | ||
@@ -48,3 +49,3 @@ stack.sort((a, b) => a.index - b.index); | ||
for (const node of nodeList) { | ||
if (node.type === ml_ast_1.MLASTNodeType.Text) { | ||
if (node.type === ml_ast_1.MLASTNodeType.Comment) { | ||
if (!hasIgnoreBlock(node.raw)) { | ||
@@ -67,3 +68,3 @@ continue; | ||
const { raw, startOffset, endOffset, startLine, endLine, startCol, endCol } = utils_1.sliceFragment(source, offset, offset + above.length); | ||
const textNode = Object.assign(Object.assign({}, node), { uuid: utils_1.uuid(), raw, | ||
const textNode = Object.assign(Object.assign({}, node), { uuid: utils_1.uuid(), type: ml_ast_1.MLASTNodeType.Text, raw, | ||
startOffset, | ||
@@ -106,3 +107,3 @@ endOffset, | ||
const { raw, startOffset, endOffset, startLine, endLine, startCol, endCol } = utils_1.sliceFragment(source, offset, offset + text.length); | ||
const textNode = Object.assign(Object.assign({}, node), { uuid: utils_1.uuid(), raw, | ||
const textNode = Object.assign(Object.assign({}, node), { uuid: utils_1.uuid(), type: ml_ast_1.MLASTNodeType.Text, raw, | ||
startOffset, | ||
@@ -109,0 +110,0 @@ endOffset, |
{ | ||
"name": "@markuplint/parser-utils", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Utility module for markuplint parser plugin", | ||
@@ -26,3 +26,3 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
}, | ||
"gitHead": "ffef90a8232a7cdd0f4eb12b11c071c184042500" | ||
"gitHead": "26df7acd93a28fa331773cbe895a234a17fc63b6" | ||
} |
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
55077
488