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 '' }) }),
// 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(
['src', 'join', 'filter'],
quoting(
function(page, args, body, state){
var res =
(args.src ?
page.get(args.src).raw
var that = this
return Promise.awaitOrRun(
args.src
&& this.parseNested(page, args.src, state),
function(src){
var text =
src ?
// can be async...
page.get(src).raw
: body ?
body
: [])
: []
return Promise.awaitOrRun(
res,
function(res){
text,
function(text){
// filter...
if(args.filter){
// XXX
}
// XXX join...
// XXX
return res }) })),
return text }) }) })),
//
// @quote(<src>)