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

Function Context

static/editor.md/lib/codemirror/mode/xml/xml.js:185–192  ·  view source on GitHub ↗
(state, tagName, startOfLine)

Source from the content-addressed store, hash-verified

183 }
184
185 function Context(state, tagName, startOfLine) {
186 this.prev = state.context;
187 this.tagName = tagName;
188 this.indent = state.indented;
189 this.startOfLine = startOfLine;
190 if (Kludges.doNotIndent.hasOwnProperty(tagName) || (state.context && state.context.noIndent))
191 this.noIndent = true;
192 }
193 function popContext(state) {
194 if (state.context) state.context = state.context.prev;
195 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected