upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
3 changed files with 16557 additions and 83 deletions
Showing only changes of commit 9620c25267 - Show all commits

View File

@ -18,6 +18,7 @@ import rehypeAutolinkHeadings from 'rehype-autolink-headings'
import rehypeKatex from 'rehype-katex' import rehypeKatex from 'rehype-katex'
import rehypeCitation from 'rehype-citation' import rehypeCitation from 'rehype-citation'
import rehypePrismPlus from 'rehype-prism-plus' import rehypePrismPlus from 'rehype-prism-plus'
import rehypePresetMinify from 'rehype-preset-minify'
const root = process.cwd() const root = process.cwd()
@ -83,6 +84,7 @@ export async function getFileBySlug(type, slug) {
{ bibliography: frontmatter?.bibliography, path: path.join(root, 'data') }, { bibliography: frontmatter?.bibliography, path: path.join(root, 'data') },
], ],
[rehypePrismPlus, { ignoreMissing: true }], [rehypePrismPlus, { ignoreMissing: true }],
rehypePresetMinify,
] ]
return options 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-autolink-headings": "^6.1.0",
"rehype-citation": "^0.1.2", "rehype-citation": "^0.1.2",
"rehype-katex": "^6.0.2", "rehype-katex": "^6.0.2",
"rehype-preset-minify": "6.0.0",
"rehype-prism-plus": "^1.1.3", "rehype-prism-plus": "^1.1.3",
"rehype-slug": "^5.0.0", "rehype-slug": "^5.0.0",
"remark-footnotes": "^4.0.1", "remark-footnotes": "^4.0.1",