(content)
| 59 | |
| 60 | /** Strip leading YAML frontmatter (--- ... ---) from markdown content. */ |
| 61 | export function stripFrontmatter(content) { |
| 62 | if (!content.startsWith('---')) return content; |
| 63 | const endIdx = content.indexOf('---', 3); |
| 64 | if (endIdx === -1) return content; |
| 65 | return content.substring(endIdx + 3).trim(); |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Recursively find all .md files under a directory. |
no outgoing calls
no test coverage detected