added checkboxes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-10-08 02:57:21 +03:00
parent 6633bc065a
commit fa5888dffb
2 changed files with 10 additions and 1 deletions

View File

@ -338,6 +338,8 @@ var Outline = {
elem.collapsed = value.trim() == 'true'
return '' })
// markdown...
.replace(/^TODO\s*(.*)$/, '<input type="checkbox"> $1')
.replace(/^DONE\s*(.*)$/, '<input type="checkbox" checked> $1')
.replace(/^######\s*(.*)$/, style('heading-6'))
.replace(/^#####\s*(.*)$/, style('heading-5'))
.replace(/^####\s*(.*)$/, style('heading-4'))

View File

@ -28,7 +28,9 @@ var setup = function(){
<div class="code">
- # Outline editor prototype
- ## TODO
- BUG: delete in edit mode deletes node...
- BUG: delete in edit mode deletes node
- BUG: multiline blocks do not indent correctly in editor
- make checkboxes clickable
- editor: enter on an expanded parent node should create child (currently next sibling)
- editor: bksapce/del at start/end of a block should join it with prev/next
- editor: pressing enter in text edit mode should split text into two blocks
@ -69,7 +71,12 @@ var setup = function(){
- a
- b
- c
- line
- ---
- basic inline *bold*, _italic_ and ~striked~
- To do items
- TODO undone item
- DONE done item
- A
collapsed:: true
- a