MCPcopy Index your code
hub / github.com/markdoc/markdoc / inline

Function inline

src/tokenizer/plugins/annotations.ts:83–94  ·  view source on GitHub ↗
(state: StateInline, silent: boolean)

Source from the content-addressed store, hash-verified

81}
82
83function inline(state: StateInline, silent: boolean): boolean {
84 if (!state.src.startsWith(OPEN, state.pos)) return false;
85
86 const tagEnd = findTagEnd(state.src, state.pos);
87 if (!tagEnd) return false;
88
89 const content = state.src.slice(state.pos + OPEN.length, tagEnd);
90 if (!silent) createToken(state, content.trim());
91
92 state.pos = tagEnd + CLOSE.length;
93 return true;
94}
95
96function core(state: StateCore) {
97 let token: Token;

Callers

nothing calls this directly

Calls 2

findTagEndFunction · 0.90
createTokenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…