mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-03-11 09:12:00 -07:00
fix: blockquotes trigger parsing as macros
This commit is contained in:
parent
ba919fba7a
commit
321b5bafda
1 changed files with 1 additions and 5 deletions
|
|
@ -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 >>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue