chore: enable ignoreMissing option for rehypePrismPlus

This commit is contained in:
ttyS3 2023-07-23 23:39:27 +08:00
parent 44ffc642cf
commit 74c2f16f81
No known key found for this signature in database
GPG Key ID: A83C6C687C9E7888

View File

@ -145,7 +145,7 @@ export default makeSource({
rehypeAutolinkHeadings,
rehypeKatex,
[rehypeCitation, { path: path.join(root, 'data') }],
[rehypePrismPlus, { defaultLanguage: 'js' }],
[rehypePrismPlus, { defaultLanguage: 'js', ignoreMissing: true }],
rehypePresetMinify,
],
},