kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Ensured block macros parse their content as blocks, rather than a run
rodzic
698f2c39cb
commit
22b27f4251
|
@ -35,7 +35,12 @@ exports.parse = function(match,isBlock) {
|
|||
if(match && match.index === this.pos) {
|
||||
this.pos = match.index + match[0].length;
|
||||
if(match[5]) {
|
||||
content = this.parseRun(/(>>)/mg);
|
||||
// If the macro has content then parse it as a block or run
|
||||
if(isBlock) {
|
||||
content = this.parseBlockTerminated(/(^>>$)/mg);
|
||||
} else {
|
||||
content = this.parseRun(/(>>)/mg);
|
||||
}
|
||||
}
|
||||
var macroNode = $tw.Tree.Macro(match[1] || match[2],{
|
||||
srcParams: match[3],
|
||||
|
|
Ładowanie…
Reference in New Issue