Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-11-06 03:18:08 +03:00
parent df8d14690e
commit 54b7ae94ca
2 changed files with 2 additions and 1 deletions

View File

@ -119,6 +119,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...
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

@ -66,7 +66,7 @@ var setup = function(){
getMarkdownOffset(m, t, 26) getMarkdownOffset(m, t, 26)
``` ```
this returns `69` while it should return `5` this returns `69` while it should return `5`
_...replacing `\n\n\n` with `\n\n` seems to fix the issue_ _...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)
- DONE clicking right of this line will select last line of block - DONE clicking right of this line will select last line of block
``` ```