mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 01:50:07 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
df8d14690e
commit
54b7ae94ca
@ -119,6 +119,7 @@ var getCharOffset = function(elem, x, y, data){
|
||||
// |
|
||||
// markdown: '# Hea|ding'
|
||||
//
|
||||
// XXX we are not checking both lengths of markdown AND text...
|
||||
var getMarkdownOffset = function(markdown, text, i){
|
||||
i = i ?? text.length
|
||||
var m = 0
|
||||
|
||||
@ -66,7 +66,7 @@ var setup = function(){
|
||||
getMarkdownOffset(m, t, 26)
|
||||
```
|
||||
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)
|
||||
- DONE clicking right of this line will select last line of block
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user