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

Function walkHtml

static/word2md/mammoth.browser.js:554–561  ·  view source on GitHub ↗
(nodes, callback)

Source from the content-addressed store, hash-verified

552}
553
554function walkHtml(nodes, callback) {
555 nodes.forEach(function(node) {
556 callback(node);
557 if (node.children) {
558 walkHtml(node.children, callback);
559 }
560 });
561}
562
563var commentAuthorLabel = exports.commentAuthorLabel = function commentAuthorLabel(comment) {
564 return comment.authorInitials || "";

Callers 1

convertToHtmlFunction · 0.70

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected