| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1e5aca5 commit d2c0da2
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,6 +27,7 @@ import htmlStringify from 'rehype-stringify'; | |||
| 27 | 27 | import gfm from 'remark-gfm'; | |
| 28 | 28 | import markdown from 'remark-parse'; | |
| 29 | 29 | import remark2rehype from 'remark-rehype'; | |
| 30 | + import frontmatter from 'remark-frontmatter'; | ||
| 30 | 31 | import unified from 'unified'; | |
| 31 | 32 | ||
| 32 | 33 | import * as html from './html.mjs'; | |
@@ -82,6 +83,7 @@ async function main() { | |||
| 82 | 83 | const input = await fs.readFile(filename, 'utf8'); | |
| 83 | 84 | ||
| 84 | 85 | const content = await unified() | |
| 86 | + .use(frontmatter) | ||
| 85 | 87 | .use(replaceLinks, { filename, linksMapper }) | |
| 86 | 88 | .use(markdown) | |
| 87 | 89 | .use(gfm) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,7 @@ | |||
| 11 | 11 | "js-yaml": "4.1.0", | |
| 12 | 12 | "rehype-raw": "5.1.0", | |
| 13 | 13 | "rehype-stringify": "8.0.0", | |
| 14 | + "remark-frontmatter": "^3.0.0", | ||
| 14 | 15 | "remark-gfm": "^1.0.0", | |
| 15 | 16 | "remark-html": "13.0.1", | |
| 16 | 17 | "remark-parse": "^9.0.0", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments