MCPcopy
hub / github.com/docsifyjs/docsify / cover

Method cover

src/core/render/compiler.js:342–349  ·  view source on GitHub ↗

* Compile cover page * @param {Text} text Text content * @returns {String} Cover page

(text)

Source from the content-addressed store, hash-verified

340 * @returns {String} Cover page
341 */
342 cover(text) {
343 const cacheToc = this.toc.slice();
344 const html = this.compile(text);
345
346 this.toc = cacheToc.slice();
347
348 return html;
349 }
350}

Callers 4

mainTplFunction · 0.80
_renderMethod · 0.80
_renderCoverMethod · 0.80
initRenderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected