Skip to content

Commit 98df71e

Browse files
committed
Fix for changes in parse5
1 parent 01f1865 commit 98df71e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function wrap(tree, file) {
173173
preprocessor.pos = -1;
174174

175175
if (start !== null) {
176-
preprocessor.droppedBufferSize = start;
176+
preprocessor.__locTracker.droppedBufferSize = start;
177177
}
178178

179179
parser.tokenizer.write(node.value);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"hast-util-from-parse5": "^2.0.0",
2424
"hast-util-to-parse5": "^2.0.0",
2525
"html-void-elements": "^1.0.1",
26-
"parse5": "^3.0.0",
26+
"parse5": "^3.0.3",
2727
"unist-util-position": "^3.0.0",
2828
"web-namespaces": "^1.0.0",
2929
"zwitch": "^1.0.0"

0 commit comments

Comments
 (0)