MCPcopy Create free account
hub / github.com/andylow92/file-system-like-github / parseNote

Function parseNote

packages/shared/src/markdown.ts:254–261  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

252
253/** Parse a markdown document into frontmatter, body, tags, and wikilinks. */
254export function parseNote(raw: string): ParsedNote {
255 const parsed = parseFrontmatter(raw);
256 return {
257 ...parsed,
258 tags: extractTags(raw),
259 links: extractWikilinks(parsed.body),
260 };
261}
262
263/**
264 * Resolve a wikilink target against a set of known logical file paths

Callers 8

handleSearchFunction · 0.90
rankByTextFunction · 0.90
firstBodyLineFunction · 0.90
handleHybridSearchFunction · 0.90
markdown.test.tsFile · 0.90
MarkdownPreviewPaneFunction · 0.90
parseSkillFunction · 0.85
declaredTypeFunction · 0.85

Calls 3

parseFrontmatterFunction · 0.85
extractTagsFunction · 0.85
extractWikilinksFunction · 0.85

Tested by

no test coverage detected