MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / stripMarkdownPathBrackets

Function stripMarkdownPathBrackets

src/editor/taskLinkDisplayText.ts:9–15  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

7}
8
9function stripMarkdownPathBrackets(value: string): string {
10 const trimmed = value.trim();
11 if (trimmed.startsWith("<") && trimmed.endsWith(">")) {
12 return trimmed.slice(1, -1).trim();
13 }
14 return trimmed;
15}
16
17function normalizePathLikeLabel(value: string | undefined): string {
18 if (!value) return "";

Callers 2

normalizePathLikeLabelFunction · 0.85
extractTaskLinkSubpathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected