Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-11-07 00:56:02 +03:00
parent 977b04afb9
commit 5f1242b766
2 changed files with 2 additions and 1 deletions

View File

@ -133,7 +133,7 @@ var getCharOffset = function(elem, x, y, data){
// markdown: '# Hea|ding' // markdown: '# Hea|ding'
// //
// XXX we are not checking both lengths of markdown AND text... // XXX we are not checking both lengths of markdown AND text...
/*/ XXX // XXX
var getMarkdownOffset = function(markdown, text, i){ var getMarkdownOffset = function(markdown, text, i){
i = i ?? text.length i = i ?? text.length
var m = 0 var m = 0

View File

@ -69,6 +69,7 @@ var setup = function(){
_...replacing `\n\n\n` with `\n\n` seems to fix the issue (also works with spaces)_ _...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) (BUG also the above line is not italic -- can't reproduce)
- clicking right of the last line places cursor wrong - clicking right of the last line places cursor wrong
- _this is a problem with the new version of `getMarkdownOffset(..)`_
- DONE M - DONE M
M can't place cursor before first char M can't place cursor before first char
M M