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

Function startSubMode

static/editor.md/lib/codemirror/mode/slim/slim.js:318–333  ·  view source on GitHub ↗
(mode, state)

Source from the content-addressed store, hash-verified

316 }
317
318 function startSubMode(mode, state) {
319 var subMode = getMode(mode);
320 var subState = subMode.startState && subMode.startState();
321
322 state.subMode = subMode;
323 state.subState = subState;
324
325 state.stack = {
326 parent: state.stack,
327 style: "sub",
328 indented: state.indented + 1,
329 tokenize: state.line
330 };
331 state.line = state.tokenize = firstSub;
332 return "slimSubmode";
333 }
334
335 function doctypeLine(stream, _state) {
336 stream.skipToEnd();

Callers 1

startLineFunction · 0.85

Calls 1

getModeFunction · 0.70

Tested by

no test coverage detected