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

Function to_mode

static/editor.md/lib/codemirror/mode/rst/rst.js:484–498  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

482 ///////////////////////////////////////////////////////////////////////////
483
484 function to_mode(stream, state) {
485
486 if (state.ctx.mode && state.ctx.local) {
487
488 if (stream.sol()) {
489 if (!stream.eatSpace()) change(state, to_normal);
490 return null;
491 }
492
493 return state.ctx.mode.token(stream, state.ctx.local);
494 }
495
496 change(state, to_normal);
497 return null;
498 }
499
500 ///////////////////////////////////////////////////////////////////////////
501 ///////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

changeFunction · 0.70

Tested by

no test coverage detected