From 9efcb84734506c5ffc3a0f573305069178d8f85f Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 25 Apr 2022 20:58:05 +0300 Subject: [PATCH] ... Signed-off-by: Alex A. Naanou --- pwiki2.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pwiki2.js b/pwiki2.js index 6d4b9ac..6f1c824 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -754,9 +754,7 @@ object.Constructor('Page', BasePage, { // XXX might be a good idea to simply ref the parent // context here -- i.e. link filters into a chain... parent_filters, - text: [...this.expand(body, state)] - .flat() - .join(''), + data: [...this.expand(body, state)], } // restore global filters... state.filters = parent_filters @@ -818,7 +816,9 @@ object.Constructor('Page', BasePage, { // XXX also need to hanlde nested filters (no longer flat)... // XXX merge this with .parent_filters... filters = section.filters - section = section.text } + section = [...that.postProcess(section.data, state)] + .flat() + .join('') } return (filters // if this.SKIP_FILTERS is set and used then all other // filters will be skipped...