mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 18:10:09 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
2af2c5a5c0
commit
845483f4f4
@ -183,11 +183,19 @@ var plugin = {
|
|||||||
return function(_, text){
|
return function(_, text){
|
||||||
elem.style ??= []
|
elem.style ??= []
|
||||||
elem.style.push(...style)
|
elem.style.push(...style)
|
||||||
return typeof(code) == 'function' ?
|
// handler...
|
||||||
code(...arguments)
|
if(typeof(code) == 'function'){
|
||||||
: code != null ?
|
return code(...arguments) }
|
||||||
code
|
// explicit code...
|
||||||
: text } },
|
if(code != null){
|
||||||
|
return code }
|
||||||
|
// get first non-empty group...
|
||||||
|
var groups = [...arguments].slice(1, -2)
|
||||||
|
while(groups.length > 0
|
||||||
|
&& groups[0] == null){
|
||||||
|
groups.shift() }
|
||||||
|
return groups[0]
|
||||||
|
?? '' } },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -434,6 +442,7 @@ var tasks = {
|
|||||||
status: [
|
status: [
|
||||||
'DONE',
|
'DONE',
|
||||||
'REJECT',
|
'REJECT',
|
||||||
|
//'TODO',
|
||||||
],
|
],
|
||||||
// format:
|
// format:
|
||||||
// [
|
// [
|
||||||
|
|||||||
@ -50,11 +50,6 @@ var setup = function(){
|
|||||||
-
|
-
|
||||||
- ## Bugs:
|
- ## Bugs:
|
||||||
focused:: true
|
focused:: true
|
||||||
- BUG: \DONE at end of block replaces block with ~undefined~
|
|
||||||
- example:
|
|
||||||
- this is some text DONE
|
|
||||||
- should look like:
|
|
||||||
- DONE this is dome text
|
|
||||||
- BUG: `toc` does not track auto headings...
|
- BUG: `toc` does not track auto headings...
|
||||||
- BUG: styling error...
|
- BUG: styling error...
|
||||||
- this _seems `to` work_
|
- this _seems `to` work_
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user