MCPcopy Create free account
hub / github.com/TruthHun/BookStack / local

Function local

static/editor.md/lib/codemirror/mode/markdown/markdown.js:201–212  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

199 }
200
201 function local(stream, state) {
202 if (stream.sol() && stream.match("```", false)) {
203 state.localMode = state.localState = null;
204 state.f = state.block = leavingLocal;
205 return null;
206 } else if (state.localMode) {
207 return state.localMode.token(stream, state.localState);
208 } else {
209 stream.skipToEnd();
210 return code;
211 }
212 }
213
214 function leavingLocal(stream, state) {
215 stream.match("```");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected