MCPcopy
hub / github.com/callumalpass/tasknotes / consumeBlockLink

Method consumeBlockLink

src/utils/TasksPluginParser.ts:257–265  ·  view source on GitHub ↗
(state: ParsingState)

Source from the content-addressed store, hash-verified

255 }
256
257 private static consumeBlockLink(state: ParsingState): string | undefined {
258 const match = state.line.match(this.BLOCK_LINK_PATTERN);
259 if (!match?.[1]) {
260 return undefined;
261 }
262
263 state.line = state.line.replace(this.BLOCK_LINK_PATTERN, "").trim();
264 return match[1];
265 }
266
267 private static consumeTrailingTagOrContext(state: ParsingState): boolean {
268 if (!this.TRAILING_TAG_OR_CONTEXT_PATTERN.test(state.line)) {

Callers 1

parseTaskContentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected