Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-10-29 15:53:05 +03:00
parent 0525efc018
commit 4cfa65f60c
2 changed files with 10 additions and 7 deletions

View File

@ -1461,9 +1461,9 @@ var Outline = {
parse: function(text){
var that = this
text = text
.replace(/^\s*\n/, '')
.replace(/^[ \t]*\n/, '')
text = ('\n' + text)
.split(/\n(\s*)(?:- |-\s*$)/gm)
.split(/\n([ \t]*)(?:- |-\s*$)/gm)
.slice(1)
var tab = ' '.repeat(this.tab_size || 8)
var level = function(lst, prev_sep=undefined, parent=[]){

View File

@ -48,6 +48,11 @@ var setup = function(){
-
- ## Bugs:
focused:: true
- BUG: trailing whitespace is ignored in view...
- this node has a second empty line
- this is a sibling to the above node
- _see code_
- BUG: mobile browsers behave quite chaotically ignoring parts of the styling...
- FF:
- zooming on edited field
@ -387,16 +392,14 @@ var setup = function(){
<outline-editor>
<textarea>- ## code enclosed in `<textarea>` element
- code is treated as-is
- the only exception is the closing textarea tag</textarea>
</outline-editor>
- the only exception is the closing textarea tag</textarea></outline-editor>
<hr>
<outline-editor>
- ## raw outline editor element
- ## raw outline editor `&lt;element&gt;`
- the children are not protected
- any html <elements> are going to be parsed by the browser
</outline-editor>
- any html <elements> are going to be parsed by the browser</outline-editor>