From 05cf25bd16cce40e9b780365a1f9a8fdbc8738d4 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 26 Dec 2023 15:25:44 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- experiments/outline-editor/editor.js | 2 +- experiments/outline-editor/index.html | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/experiments/outline-editor/editor.js b/experiments/outline-editor/editor.js index 863d079..f4f68b5 100755 --- a/experiments/outline-editor/editor.js +++ b/experiments/outline-editor/editor.js @@ -855,7 +855,7 @@ var styling = { .replace(/(\s*)(?$2$3') // elements... - .replace(/(\n|^)(?') + .replace(/(\n|^)(?') // basic styling... .replace(/(?$1') .replace(/(?$1') diff --git a/experiments/outline-editor/index.html b/experiments/outline-editor/index.html index ce9ddb0..b6a7510 100755 --- a/experiments/outline-editor/index.html +++ b/experiments/outline-editor/index.html @@ -152,7 +152,22 @@ var setup = function(){ - delete attr from code -- by removing it from attr list (when shown)... - DONE BUG? can't set `''` as attr value -- parser?? - TOC: tweaking: add args like depth, ... -- as attributes... - - TOC: should it be persistently generated as code and be serializable? + - TOC: persistently generate as code + - ``` + TOC + ``` + should turn into: + ``` + TOC + \- [moo](#moo) + \- [foo](#foo) + ``` + shown as: + --- + \- [moo](#moo) + \- [foo](#foo) + --- + - ASAP check if we can add blocks during element handling... - simple use strategies: - custom element - constructor