Merge pull request #333 from AlexanderZeilmann/master

feat: Add rehype-preset-minify
This commit is contained in:
Timothy 2022-01-15 12:32:06 +08:00 committed by GitHub
commit 9620c25267
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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",