upstream #1
| @@ -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
									
									
									
								
							
							
						
						
									
										16637
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -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", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user