MCPcopy
hub / github.com/GitbookIO/gitbook / editHTMLElement

Function editHTMLElement

lib/output/modifiers/editHTMLElement.js:6–13  ·  view source on GitHub ↗

Edit all elements matching a selector

($, selector, fn)

Source from the content-addressed store, hash-verified

4 Edit all elements matching a selector
5*/
6function editHTMLElement($, selector, fn) {
7 var $elements = $(selector);
8
9 return Promise.forEach($elements, function(el) {
10 var $el = $(el);
11 return fn($el);
12 });
13}
14
15module.exports = editHTMLElement;

Callers 8

resolveLinksFunction · 0.85
highlightCodeFunction · 0.85
addHeadingIdFunction · 0.85
fetchRemoteImagesFunction · 0.85
resolveImagesFunction · 0.85
svgToPngFunction · 0.85
svgToImgFunction · 0.85
inlinePngFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…