@markuplint/parser-utils
Advanced tools
Comparing version 2.0.0-dev.20211213.2 to 2.0.0-dev.20220105.1
@@ -157,4 +157,9 @@ "use strict"; | ||
for (const tag of stack) { | ||
if (attr.value.startOffset <= tag.index && tag.index < attr.value.endOffset) { | ||
attr.value.raw = tag.startTag + tag.taggedCode + tag.endTag; | ||
const raw = tag.startTag + tag.taggedCode + tag.endTag; | ||
const length = raw.length; | ||
if (attr.value.startOffset <= tag.index && tag.index + length <= attr.value.endOffset) { | ||
const offset = tag.index - attr.value.startOffset; | ||
const above = attr.value.raw.slice(0, offset); | ||
const below = attr.value.raw.slice(offset + length); | ||
attr.value.raw = above + raw + below; | ||
attr.isDynamicValue = true; | ||
@@ -161,0 +166,0 @@ } |
{ | ||
"name": "@markuplint/parser-utils", | ||
"version": "2.0.0-dev.20211213.2", | ||
"version": "2.0.0-dev.20220105.1", | ||
"description": "Utility module for markuplint parser plugin", | ||
@@ -22,8 +22,8 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"dependencies": { | ||
"@markuplint/ml-ast": "2.0.0-dev.20211115.2", | ||
"@markuplint/types": "1.0.0-dev.20211213.2", | ||
"@markuplint/ml-ast": "2.0.0-dev.20211115.3", | ||
"@markuplint/types": "1.0.0-dev.20211213.3", | ||
"tslib": "^2.3.1", | ||
"uuid": "^8.3.2" | ||
}, | ||
"gitHead": "f94cbc11593ae7b65fab01272f91df9defc4413b" | ||
"gitHead": "73fab2765c080b0a42e71bdc1eed09bae0ed360e" | ||
} |
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
77464
1050
+ Added@markuplint/ml-ast@2.0.0-dev.20211115.3(transitive)
+ Added@markuplint/types@1.0.0-dev.20211213.3(transitive)
- Removed@markuplint/ml-ast@2.0.0-dev.20211115.2(transitive)
- Removed@markuplint/types@1.0.0-dev.20211213.2(transitive)