1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-02-27 20:39:49 +00:00

fix: blockquotes trigger parsing as macros

This commit is contained in:
saqimtiaz
2026-02-26 08:46:23 +01:00
parent ba919fba7a
commit 321b5bafda

View File

@@ -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 >>