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

Method callback

src/core/render/index.js:317–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

315 this.callHook('beforeEach', text, result => {
316 let html;
317 const callback = () => {
318 if (opt.updatedAt) {
319 html = formatUpdated(
320 html,
321 opt.updatedAt,
322 this.config.formatUpdated
323 );
324 }
325
326 this.callHook('afterEach', html, hookData => {
327 renderMain.call(this, hookData);
328 next();
329 });
330 };
331
332 if (this.isHTML) {
333 html = this.result = text;

Callers

nothing calls this directly

Calls 3

formatUpdatedFunction · 0.85
nextFunction · 0.85
callHookMethod · 0.80

Tested by

no test coverage detected