finally a thread to pull on in the sync bug...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-02-04 03:18:50 +03:00
parent 39e810aa60
commit cea909d693

View File

@ -438,9 +438,15 @@ module.BaseParser = {
// the ast is constructed the other should be part of the ast...
// XXX ASYNC this does not yet work as a replacement for .expand(..),
// not sure why...
// ...can't yet reproduce outside the page rendering...
// ...seems to be an odd sync issue, either in one of the macro
// handlers or in the way the defaults are applied...
// ...seems that this breaks how slots are handled...
// to reproduce:
// new code:
// await p.pwiki.parse('<slot moo/>!!! <slot moo>moo</slot>')
// -> '!!! '
// old code:
// await p.pwiki.parse('<slot moo/>!!! <slot moo>moo</slot>')
// -> 'moo!!! '
// ...does not seem to affect named macros...
_expand: function(page, ast, state={}){
var that = this
ast = ast == null ?