Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-12-10 16:53:46 +03:00
parent a6a4882fb7
commit a65266566a

View File

@ -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