Merge branch 'master' of github.com:flynx/pWiki

This commit is contained in:
Alex A. Naanou 2023-11-08 00:09:33 +03:00
commit 3048fb47d4
2 changed files with 4 additions and 1 deletions

View File

@ -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
@ -158,6 +158,7 @@ var getMarkdownOffset = function(markdown, text, i){
// chars in text can lead to false positives and lots of potential
// (not implemented) backtracking...
// ...needs thought...
// Q: can we cheat with this? =)
var getMarkdownOffset = function(markdown, text, i){
i = i ?? text.length
var map = []

View File

@ -68,6 +68,8 @@ var setup = function(){
this returns `69` while it should return `5`
_...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