From 321b5bafdadeaa28ed8bb306f5553adb05474385 Mon Sep 17 00:00:00 2001 From: saqimtiaz Date: Thu, 26 Feb 2026 08:46:23 +0100 Subject: [PATCH] fix: blockquotes trigger parsing as macros --- core/modules/parsers/parseutils.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/modules/parsers/parseutils.js b/core/modules/parsers/parseutils.js index 36365832e..d03f31223 100644 --- a/core/modules/parsers/parseutils.js +++ b/core/modules/parsers/parseutils.js @@ -221,7 +221,7 @@ exports.parseMacroInvocationAsTransclusion = function(source,pos) { orderedAttributes: [] }; // Define our regexps - var reVarName = /([^\s>"'=:]+)/y; + var reVarName = /([^\s<>"'=:]+)/y; // Skip whitespace pos = $tw.utils.skipWhiteSpace(source,pos); // Look for a double opening angle bracket @@ -235,10 +235,6 @@ exports.parseMacroInvocationAsTransclusion = function(source,pos) { if(!token) { return null; } - // If the next character is also < then this is a blockquote, not a macro invocation - if(source.charAt(token.end) === "<") { - return null; - } $tw.utils.addAttributeToParseTreeNode(node,"$variable",token.match[1]); pos = token.end; // Check that the tag is terminated by a space or >>