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

Function commentMode

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

Source from the content-addressed store, hash-verified

214 }
215
216 function commentMode(stream, state) {
217 state.stack = {
218 parent: state.stack,
219 style: "comment",
220 indented: state.indented + 1,
221 tokenize: state.line
222 };
223 state.line = comment;
224 return comment(stream, state);
225 }
226
227 function attributeWrapper(stream, state) {
228 if (stream.eat(state.stack.endQuote)) {

Callers 1

startLineFunction · 0.85

Calls 1

commentFunction · 0.70

Tested by

no test coverage detected