We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6608bf commit 2225813Copy full SHA for 2225813
src/parse-result.ts
@@ -513,7 +513,10 @@ export default class ParseResult {
513
blockParamsEndIndex + 1
514
);
515
516
- const closeOpenIndex = nodeInfo.source.indexOf(selfClosing ? '/>' : '>');
+ // Match closing index after start of block params to avoid closing tag if /> or > encountered in string
517
+ const closeOpenIndex =
518
+ nodeInfo.source.substring(blockParamStartIndex).indexOf(selfClosing ? '/>' : '>') +
519
+ blockParamStartIndex;
520
postBlockParamsWhitespace = nodeInfo.source.substring(
521
blockParamsEndIndex + 1,
522
closeOpenIndex
0 commit comments