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

Function baseState

static/editor.md/lib/codemirror/mode/xml/xml.js:211–220  ·  view source on GitHub ↗
(type, stream, state)

Source from the content-addressed store, hash-verified

209 }
210
211 function baseState(type, stream, state) {
212 if (type == "openTag") {
213 state.tagStart = stream.column();
214 return tagNameState;
215 } else if (type == "closeTag") {
216 return closeTagNameState;
217 } else {
218 return baseState;
219 }
220 }
221 function tagNameState(type, stream, state) {
222 if (type == "word") {
223 state.tagName = stream.current();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected