MCPcopy
hub / github.com/foambubble/foam / parseNote

Function parseNote

packages/foam-core/src/query/index.test.ts:832–835  ·  view source on GitHub ↗
(uriPath: string, markdown: string)

Source from the content-addressed store, hash-verified

830 const parser = createMarkdownParser();
831
832 function parseNote(uriPath: string, markdown: string) {
833 const uri = URI.file(uriPath);
834 return parser.parse(uri, markdown);
835 }
836
837 it('`body` returns the note text minus frontmatter, keeping the H1 title', () => {
838 const markdown = `---\nstatus: to_ask\n---\n# Question\n\nWhat is X?\n`;

Callers 1

index.test.tsFile · 0.85

Calls 2

fileMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected