(html, updated, fn)
| 30 | } |
| 31 | |
| 32 | function 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 | |
| 43 | function renderMain(html) { |
| 44 | const docsifyConfig = this.config; |
no outgoing calls
no test coverage detected
searching dependent graphs…