MCPcopy Create free account
hub / github.com/TruthHun/BookStack / next

Function next

static/word2md/turndown.js:492–498  ·  view source on GitHub ↗

* next(prev, current, isPre) returns the next node in the sequence, given the * current and previous nodes. * * @param {Node} prev * @param {Node} current * @param {Function} isPre * @return {Node}

(prev, current, isPre)

Source from the content-addressed store, hash-verified

490 * @return {Node}
491 */
492function next (prev, current, isPre) {
493 if ((prev && prev.parentNode === current) || isPre(current)) {
494 return current.nextSibling || current.parentNode
495 }
496
497 return current.firstChild || current.nextSibling || current.parentNode
498}
499
500/*
501 * Set up window for Node.js

Callers 1

collapseWhitespaceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected