(raw: string)
| 252 | |
| 253 | /** Parse a markdown document into frontmatter, body, tags, and wikilinks. */ |
| 254 | export 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 |
no test coverage detected