a bit of a fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2026-07-03 02:24:22 +03:00
parent 2ad186888e
commit 46d768e4e1

View File

@ -1664,26 +1664,34 @@ module.parser = {
return '' }) }), return '' }) }),
// XXX a naive version, see ._quote(..) for reference... // XXX a naive version, see ._quote(..) for reference...
// XXX might be a good idea to do an auto-filter that would be
// apropriately selected according to format -- md, html, ...
quote: Macro( quote: Macro(
['src', 'join', 'filter'], ['src', 'join', 'filter'],
quoting( quoting(
function(page, args, body, state){ function(page, args, body, state){
var res = var that = this
(args.src ?
page.get(args.src).raw
: body ?
body
: [])
return Promise.awaitOrRun( return Promise.awaitOrRun(
res, args.src
function(res){ && this.parseNested(page, args.src, state),
// filter... function(src){
if(args.filter){ var text =
// XXX src ?
} // can be async...
// XXX join... page.get(src).raw
// XXX : body ?
return res }) })), body
: []
return Promise.awaitOrRun(
text,
function(text){
// filter...
if(args.filter){
// XXX
}
// XXX join...
// XXX
return text }) }) })),
// //
// @quote(<src>) // @quote(<src>)