From 8ef755c616be355d8ffbef1657cff262b3e7796e Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 11 Oct 2023 13:13:27 +0300 Subject: [PATCH] tweaks and notes... Signed-off-by: Alex A. Naanou --- experiments/outline-editor/editor.js | 7 +++++-- experiments/outline-editor/index.html | 11 ++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/experiments/outline-editor/editor.js b/experiments/outline-editor/editor.js index 0cfa0a5..3caa42a 100755 --- a/experiments/outline-editor/editor.js +++ b/experiments/outline-editor/editor.js @@ -193,7 +193,7 @@ var Outline = { && (data.collapsed ? node.setAttribute('collapsed', '') : node.removeAttribute('collapsed')) - if(data.text){ + if(data.text != null){ var text = node.querySelector('textarea') var html = node.querySelector('span') if(this.__code2html__){ @@ -352,10 +352,13 @@ var Outline = { .replace(/\s*(?')) // basic styling... + // XXX revise... .replace(/(?$1') .replace(/(?$1') .replace(/(?$1') - .replace(/(?$1') + .replace(/(?$1') + // XXX support "\==" in mark... + .replace(/(?$1') // characters... // XXX use ligatures for these??? .replace(/(?this takes the whole element~ + - this breaks if link is exactly line width -- should we ensure empty space? - ~serialize/deserialize~ - ~add optional text styling to nodes~ - @@ -110,6 +118,7 @@ var setup = function(){ - --- - Markers: ASAP, BUG, FIX, HACK, STUB, WARNING, and CAUTION - Basic inline *bold*, _italic_ and ~striked~ + - Marking ==text== - Inline [X] checkboxes [_] - To do items/blocks - [_] undone item