tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2026-07-05 11:42:24 +03:00
parent c251efe1a5
commit 5c2a7ca7d1

View File

@ -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))