From 886a69cbb2facf8e8d1072d46fdb73d3ffc367e2 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 28 Jul 2022 10:13:38 +0300 Subject: [PATCH] tweak... Signed-off-by: Alex A. Naanou --- pwiki2.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pwiki2.js b/pwiki2.js index 0d81740..5d1e306 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -1703,7 +1703,6 @@ module.BaseParser = { this.expand(page, ast, state) : ast - //return [...ast] return ast // post handlers... .map(function(section){ @@ -1893,7 +1892,9 @@ object.Constructor('Page', BasePage, { // expand the body... var ast = expand ? - [...this.__parser__.expand(this, body, state)] + // XXX async... + //[...this.__parser__.expand(this, body, state)] + this.__parser__.expand(this, body, state) : body instanceof Array ? body // NOTE: wrapping the body in an array effectively