diff --git a/experiments/outline-editor/editor.js b/experiments/outline-editor/editor.js index 3607dc4..6e461fa 100755 --- a/experiments/outline-editor/editor.js +++ b/experiments/outline-editor/editor.js @@ -133,7 +133,7 @@ var getCharOffset = function(elem, x, y, data){ // markdown: '# Hea|ding' // // XXX we are not checking both lengths of markdown AND text... -/*/ XXX +// XXX var getMarkdownOffset = function(markdown, text, i){ i = i ?? text.length var m = 0 diff --git a/experiments/outline-editor/index.html b/experiments/outline-editor/index.html index 8bec530..c386173 100755 --- a/experiments/outline-editor/index.html +++ b/experiments/outline-editor/index.html @@ -69,6 +69,7 @@ var setup = function(){ _...replacing `\n\n\n` with `\n\n` seems to fix the issue (also works with spaces)_ (BUG also the above line is not italic -- can't reproduce) - clicking right of the last line places cursor wrong + - _this is a problem with the new version of `getMarkdownOffset(..)`_ - DONE M M can't place cursor before first char M