From 5c2a7ca7d115f2e2023de032f178761809cb9554 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 5 Jul 2026 11:42:24 +0300 Subject: [PATCH] tweaks... Signed-off-by: Alex A. Naanou --- v3/pwiki/parser.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/v3/pwiki/parser.js b/v3/pwiki/parser.js index 61a3bc2..f985685 100644 --- a/v3/pwiki/parser.js +++ b/v3/pwiki/parser.js @@ -1371,14 +1371,15 @@ module.parser = { // get and run things... return Promise.awaitOrRun( page.get(src).matched, + // XXX push this to a later stage -- we might not even need it... page.get(src).raw, - function(paths, pages){ + function(paths, texts){ paths = paths instanceof Array ? paths : [paths] - pages = pages instanceof Array ? - pages - : [pages] + texts = texts instanceof Array ? + texts + : [texts] return Promise.awaitOrRun( // handle pages... Promise @@ -1386,7 +1387,7 @@ module.parser = { that.joinBlocks( page, Array - .zip(paths, pages) + .zip(paths, texts) .map(pageHandler), args.join, state))