Skip to content

Commit

Permalink
Merge branch 'master' of github.com:flynx/pWiki
Browse files Browse the repository at this point in the history
  • Loading branch information
flynx committed Nov 7, 2023
2 parents b13677d + 7a5663e commit 3048fb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion experiments/outline-editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = []
Expand Down
2 changes: 2 additions & 0 deletions experiments/outline-editor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
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
Expand Down

0 comments on commit 3048fb4

Please sign in to comment.