Add rehype-preset-minify

This commit is contained in:
Alexander Zeilmann 2022-01-11 19:18:24 +01:00
parent f86917c37f
commit 6e9c4f3bea
3 changed files with 16557 additions and 83 deletions

View File

@ -18,6 +18,7 @@ import rehypeAutolinkHeadings from 'rehype-autolink-headings'
import rehypeKatex from 'rehype-katex'
import rehypeCitation from 'rehype-citation'
import rehypePrismPlus from 'rehype-prism-plus'
import rehypePresetMinify from 'rehype-preset-minify'
const root = process.cwd()
@ -83,6 +84,7 @@ export async function getFileBySlug(type, slug) {
{ bibliography: frontmatter?.bibliography, path: path.join(root, 'data') },
],
[rehypePrismPlus, { ignoreMissing: true }],
rehypePresetMinify,
]
return options
},

16637
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -31,6 +31,7 @@
"rehype-autolink-headings": "^6.1.0",
"rehype-citation": "^0.1.2",
"rehype-katex": "^6.0.2",
"rehype-preset-minify": "6.0.0",
"rehype-prism-plus": "^1.1.3",
"rehype-slug": "^5.0.0",
"remark-footnotes": "^4.0.1",