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

Function executeScript

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

Source from the content-addressed store, hash-verified

14let vueGlobalData;
15
16function executeScript() {
17 const script = dom
18 .findAll('.markdown-section>script')
19 .filter(s => !/template/.test(s.type))[0];
20 if (!script) {
21 return false;
22 }
23
24 const code = script.innerText.trim();
25 if (!code) {
26 return false;
27 }
28
29 new Function(code)();
30}
31
32function formatUpdated(html, updated, fn) {
33 updated =

Callers 1

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