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

Function linkInline

static/editor.md/lib/codemirror/mode/markdown/markdown.js:532–550  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

530 }
531
532 function linkInline(stream, state) {
533 var ch = stream.next();
534
535 if (ch === ">") {
536 state.f = state.inline = inlineNormal;
537 if (modeCfg.highlightFormatting) state.formatting = "link";
538 var type = getType(state);
539 if (type){
540 type += " ";
541 } else {
542 type = "";
543 }
544 return type + linkinline;
545 }
546
547 stream.match(/^[^>]+/, true);
548
549 return linkinline;
550 }
551
552 function linkHref(stream, state) {
553 // Check if space, and return NULL if so (to avoid marking the space)

Callers

nothing calls this directly

Calls 1

getTypeFunction · 0.70

Tested by

no test coverage detected