Restore compact call syntax (#9778)

* Initial commit

* Oops broken test
This commit is contained in:
Jeremy Ruston
2026-04-01 15:22:42 +02:00
committed by GitHub
parent 0c26a75472
commit c25659d87c
2 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ exports.parseMacroInvocationAsTransclusion = function(source,pos) {
pos = token.end;
// Check that the tag is terminated by a space or >>, and that there is a closing >> somewhere ahead
if(!(source.charAt(pos) === ">" && source.charAt(pos + 1) === ">") ) {
if(!$tw.utils.parseWhiteSpace(source,pos) || source.indexOf(">>",pos) === -1) {
if(source.indexOf(">>",pos) === -1) {
return null;
}
}