MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / htmlBlock

Function htmlBlock

lib/web/CodeMirror/mode/markdown/markdown.js:284–297  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

282 }
283
284 function htmlBlock(stream, state) {
285 var style = htmlMode.token(stream, state.htmlState);
286 if (!htmlModeMissing) {
287 var inner = CodeMirror.innerMode(htmlMode, state.htmlState)
288 if ((inner.mode.name == "xml" && inner.state.tagStart === null &&
289 (!inner.state.context && inner.state.tokenize.isInText)) ||
290 (state.md_inside && stream.current().indexOf(">") > -1)) {
291 state.f = inlineNormal;
292 state.block = blockNormal;
293 state.htmlState = null;
294 }
295 }
296 return style;
297 }
298
299 function local(stream, state) {
300 var currListInd = state.listStack[state.listStack.length - 1] || 0;

Callers

nothing calls this directly

Calls 2

indexOfMethod · 0.80
currentMethod · 0.80

Tested by

no test coverage detected