(state: NavigationState)
| 193 | } |
| 194 | |
| 195 | function writeNavState(state: NavigationState): void { |
| 196 | fs.mkdirSync(path.dirname(navStatePath()), { recursive: true }); |
| 197 | fs.writeFileSync(navStatePath(), JSON.stringify(state, null, 2)); |
| 198 | } |
| 199 | |
| 200 | function parseFrontmatterTags(content: string): string[] { |
| 201 | const match = /^---\n([\s\S]*?)\n---\n/.exec(content); |
no test coverage detected