mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 18:10:09 +00:00
...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a6a4882fb7
commit
a65266566a
@ -191,14 +191,12 @@ var getMarkdownOffset = function(markdown, text, i){
|
||||
return map[i] }
|
||||
//*/
|
||||
|
||||
/* XXX this is not needed...
|
||||
var getText = function(elem, res=[]){
|
||||
for(var n of elem.childNodes){
|
||||
n.nodeType == n.TEXT_NODE ?
|
||||
res.push(n.textContent)
|
||||
: getText(n, res) }
|
||||
return res }
|
||||
//*/
|
||||
|
||||
var offsetAt = function(A, B, i){
|
||||
i ??= A.length-1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user