found bug + tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-10-26 21:46:14 +03:00
parent 0125964dd6
commit d81125293e
3 changed files with 17 additions and 1 deletions

View File

@ -444,6 +444,16 @@ editor .outline .block:focus {
}
/*------------------------------------------------------ hr block ---*/
.editor .outline .list>.children>.block.hr>.view:before {
content: "";
}
.editor .outline .numbered-list>.children>.block.hr>.view:before {
content: "";
}
/*--------------------------------------------------------- Notes ---*/
.editor .outline .NOTE {

View File

@ -184,7 +184,8 @@ var blocks = {
.replace(/^\s*(?<!\\)((\/\/|;)\s+.*)$/m, this.style(editor, elem, 'comment'))
.replace(/^\s*(?<!\\)NOTE:?\s*(.*)$/m, this.style(editor, elem, 'NOTE'))
.replace(/^\s*(?<!\\)XXX\s+(.*)$/m, this.style(editor, elem, 'XXX'))
.replace(/^(.*)\s*(?<!\\)XXX$/m, this.style(editor, elem, 'XXX')) } ,
.replace(/^(.*)\s*(?<!\\)XXX$/m, this.style(editor, elem, 'XXX'))
.replace(/^\s*---\s*$/m, this.style(editor, elem, 'hr', '<hr>')) } ,
}

View File

@ -48,9 +48,14 @@ var setup = function(){
-
- ## Bugs:
focused:: true
- BUG: adding a new node after a last node on a level adds it to wrong level
- demo:
- a
- add node after this
- BUG: mobile browsers behave quite chaotically ignoring parts of the styling...
-
- ## ToDo:
- make `---` block not show list bullets...
- copy/paste nodes/trees
- FEATURE: read-only mode
- auto-shift done blocks to the end of siblings... (option?)