(f)
| 60 | |
| 61 | // In source files, ignore comments. |
| 62 | async function readMarkdownSource(f) { |
| 63 | return (await readFile(f, "utf8")).replaceAll(/<!-- .*? -->/gs, ""); |
| 64 | } |
| 65 | |
| 66 | // Recursively find all md files in the directory. |
| 67 | async function* readMarkdownFiles(root, subpath = "/") { |