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

Function slimContent

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

Source from the content-addressed store, hash-verified

488 };
489 }
490 function slimContent(stream, state) {
491 if (stream.match(/^==?/)) {
492 state.tokenize = ruby;
493 return "slimSwitch";
494 }
495 if (stream.match(/^\/$/)) { // tag close hint
496 state.tokenize = slim;
497 return null;
498 }
499 if (stream.match(/^:/)) { // inline tag
500 state.tokenize = slimTag;
501 return "slimSwitch";
502 }
503 startHtmlMode(stream, state, 0);
504 return state.tokenize(stream, state);
505 }
506
507 var mode = {
508 // default to html mode

Callers 1

slimAttributeFunction · 0.85

Calls 1

startHtmlModeFunction · 0.85

Tested by

no test coverage detected