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

Function addHeadingId

lib/output/modifiers/addHeadingId.js:19–21  ·  view source on GitHub ↗

Add ID to all headings @param {HTMLDom} $

($)

Source from the content-addressed store, hash-verified

17 @param {HTMLDom} $
18*/
19function addHeadingId($) {
20 return editHTMLElement($, 'h1,h2,h3,h4,h5,h6', addId);
21}
22
23module.exports = addHeadingId;

Callers 1

addHeadingId.jsFile · 0.85

Calls 1

editHTMLElementFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…