MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / parseEmphasis

Function parseEmphasis

src/common/markdown-span.ts:85–89  ·  view source on GitHub ↗
(delim: string)

Source from the content-addressed store, hash-verified

83 };
84
85 const parseEmphasis = (delim: string) => {
86 let s = '';
87 while (!match(delim) && i < t.length) s += consume();
88 spans.push({ tag: 'em', s });
89 };
90
91 const parseItalic = (delim: string) => {
92 let s = '';

Callers 1

parseSpanFunction · 0.85

Calls 2

matchFunction · 0.70
consumeFunction · 0.70

Tested by

no test coverage detected