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

Function as_block

static/editor.md/lib/codemirror/mode/rst/rst.js:471–479  ·  view source on GitHub ↗
(stream, state, token)

Source from the content-addressed store, hash-verified

469 }
470
471 function as_block(stream, state, token) {
472 if (stream.eol() || stream.eatSpace()) {
473 stream.skipToEnd();
474 return token;
475 } else {
476 change(state, to_normal);
477 return null;
478 }
479 }
480
481 ///////////////////////////////////////////////////////////////////////////
482 ///////////////////////////////////////////////////////////////////////////

Callers 2

to_commentFunction · 0.85
to_verbatimFunction · 0.85

Calls 1

changeFunction · 0.70

Tested by

no test coverage detected