mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 10:00:08 +00:00
minor fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
7fe24c06fc
commit
d694b76220
@ -500,7 +500,7 @@ module.BaseParser = {
|
||||
return [res] } }) },
|
||||
function(err){
|
||||
console.error(err)
|
||||
return page.parse(
|
||||
return [page.parse(
|
||||
// XXX add line number and page path...
|
||||
'@include("./ParseError'
|
||||
+':path='
|
||||
@ -517,9 +517,9 @@ module.BaseParser = {
|
||||
return '%'+ c.charCodeAt().toString(16) })
|
||||
.replace(/:/g, ':')
|
||||
.replace(/=/g, '=')
|
||||
+'")') })
|
||||
+'")')] })
|
||||
.sync() },
|
||||
/*/
|
||||
/*/ // XXX ASYNC
|
||||
expand: async function*(page, ast, state={}){
|
||||
try{
|
||||
ast = ast == null ?
|
||||
@ -631,12 +631,11 @@ module.BaseParser = {
|
||||
.flat()
|
||||
// NOTE: we need to await for ast here as we need stage 2 of
|
||||
// parsing to happen AFTER everything else completes...
|
||||
// XXX
|
||||
: ast.then(function(ast){
|
||||
return ast.map(handleItem)
|
||||
.flat() })
|
||||
.iter() },
|
||||
/*/
|
||||
/*/ // XXX ASYNC
|
||||
resolve: async function*(page, ast, state={}){
|
||||
ast = ast
|
||||
?? this.expand(page, null, state)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user