| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,14 +8,14 @@ import { mkdir, writeFile } from 'fs/promises'; | |||
| 8 | 8 | ||
| 9 | 9 | import gfm from 'remark-gfm'; | |
| 10 | 10 | import remarkParse from 'remark-parse'; | |
| 11 | - import { toVFile } from 'to-vfile'; | ||
| 11 | + import { readSync } from 'to-vfile'; | ||
| 12 | 12 | import { unified } from 'unified'; | |
| 13 | 13 | ||
| 14 | 14 | const rootDir = new URL('../../', import.meta.url); | |
| 15 | 15 | const doc = new URL('./doc/api/addons.md', rootDir); | |
| 16 | 16 | const verifyDir = new URL('./test/addons/', rootDir); | |
| 17 | 17 | ||
| 18 | - const file = toVFile.readSync(doc, 'utf8'); | ||
| 18 | + const file = readSync(doc, 'utf8'); | ||
| 19 | 19 | const tree = unified().use(remarkParse).use(gfm).parse(file); | |
| 20 | 20 | const addons = {}; | |
| 21 | 21 | let id = 0; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments