MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / linkHref

Function linkHref

static/js/codemirror/mode/markdown/markdown.js:332–342  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

330 }
331
332 function linkHref(stream, state) {
333 // Check if space, and return NULL if so (to avoid marking the space)
334 if(stream.eatSpace()){
335 return null;
336 }
337 var ch = stream.next();
338 if (ch === '(' || ch === '[') {
339 return switchInline(stream, state, inlineElement(linkhref, ch === '(' ? ')' : ']'));
340 }
341 return 'error';
342 }
343
344 function footnoteLink(stream, state) {
345 if (stream.match(/^[^\]]*\]:/, true)) {

Callers

nothing calls this directly

Calls 3

switchInlineFunction · 0.85
inlineElementFunction · 0.85
nextMethod · 0.45

Tested by

no test coverage detected