MCPcopy
hub / github.com/markedjs/marked / setInitialText

Function setInitialText

docs/demo/demo.js:204–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202 });
203
204function setInitialText() {
205 if ('text' in search) {
206 $markdownElem.value = search.text;
207 } else {
208 return fetch('./initial.md')
209 .then((res) => res.text())
210 .then((text) => {
211 if ($markdownElem.value === '') {
212 $markdownElem.value = text;
213 }
214 });
215 }
216}
217
218function setInitialQuickref() {
219 return fetch('./quickref.md')

Callers 1

demo.jsFile · 0.85

Calls 1

textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…