mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-18 17:11:38 +00:00
found a nasty sync bug that was causing lots of odd issues..
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e14c5cab05
commit
fd6cf8d7ad
@ -450,8 +450,9 @@ module.BaseParser = {
|
|||||||
this.expand(page, ast, state)
|
this.expand(page, ast, state)
|
||||||
: ast
|
: ast
|
||||||
|
|
||||||
|
// NOTE: we need to await for ast here as we need stage 2 of
|
||||||
return ast
|
// parsing to happen AFTER everything else completes...
|
||||||
|
return (await ast)
|
||||||
// post handlers...
|
// post handlers...
|
||||||
.map(function(section){
|
.map(function(section){
|
||||||
return typeof(section) == 'function' ?
|
return typeof(section) == 'function' ?
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
(function(require){ var module={} // make module AMD/node compatible...
|
(function(require){ var module={} // make module AMD/node compatible...
|
||||||
/*********************************************************************/
|
/*********************************************************************/
|
||||||
|
|
||||||
|
var object = require('ig-object')
|
||||||
|
|
||||||
var pwiki = require('./pwiki2')
|
var pwiki = require('./pwiki2')
|
||||||
|
|
||||||
// XXX for some reason this does not run quietly in browser
|
// XXX for some reason this does not run quietly in browser
|
||||||
@ -55,6 +57,27 @@ pwiki.store.update('@pouch', {
|
|||||||
// XXX TEST...
|
// XXX TEST...
|
||||||
// XXX add filter tests...
|
// XXX add filter tests...
|
||||||
pwiki.pwiki
|
pwiki.pwiki
|
||||||
|
.update({
|
||||||
|
location: '/test/wikiword',
|
||||||
|
text: object.doc`
|
||||||
|
This is a basic WikiWord test, all
|
||||||
|
the [basic] forms and Versions of
|
||||||
|
/inline/links.
|
||||||
|
|
||||||
|
@filter(wikiword markdown) `,
|
||||||
|
})
|
||||||
|
.update({
|
||||||
|
location: '/test/slots',
|
||||||
|
text: object.doc`
|
||||||
|
Testing slot mechanics...
|
||||||
|
|
||||||
|
This slot is <slot name="empty">unfilled</slot>
|
||||||
|
|
||||||
|
...while this <slot name="non-empty">text should be replaced...</slot>
|
||||||
|
|
||||||
|
<slot name="non-empty">text is filling a slot</slot>
|
||||||
|
`,
|
||||||
|
})
|
||||||
.update({
|
.update({
|
||||||
location: '/test/a',
|
location: '/test/a',
|
||||||
text: 'a',
|
text: 'a',
|
||||||
|
|||||||
@ -1,13 +1,7 @@
|
|||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* XXX revise macros...
|
* XXX wikiword filter seems to act up on /
|
||||||
* - filters behave in an odd way...
|
|
||||||
* - slots do not seem to work...
|
|
||||||
* XXX wikiword filter seems to hang on /
|
|
||||||
* XXX do filters affect the whole page or only what comes after???
|
|
||||||
* XXX need to be able to affect the default render wrpaper...
|
|
||||||
* i.e.: /some/path (default) vs. /some/path/_view vs. /some/path/_raw
|
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* XXX ROADMAP:
|
* XXX ROADMAP:
|
||||||
@ -28,6 +22,7 @@
|
|||||||
* - archive old code
|
* - archive old code
|
||||||
* - update docs
|
* - update docs
|
||||||
* - refactor and cleanup
|
* - refactor and cleanup
|
||||||
|
* - module structure -- DONE
|
||||||
* - pack as electron app (???)
|
* - pack as electron app (???)
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user