MCPcopy Index your code
hub / github.com/docsifyjs/docsify / formatUpdated

Function formatUpdated

src/core/render/index.js:32–41  ·  view source on GitHub ↗
(html, updated, fn)

Source from the content-addressed store, hash-verified

30}
31
32function formatUpdated(html, updated, fn) {
33 updated =
34 typeof fn === 'function'
35 ? fn(updated)
36 : typeof fn === 'string'
37 ? tinydate(fn)(new Date(updated))
38 : updated;
39
40 return html.replace(/{docsify-updated}/g, updated);
41}
42
43function renderMain(html) {
44 const docsifyConfig = this.config;

Callers 1

callbackMethod · 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…