Skip to content

Commit c8c1468

Browse files
authoredJul 25, 2024··
fix(rehype): add the misssing CodeToHastOptionsCommon to RehypeShikiCoreOptions for rehype plugin (#726)
1 parent 5e2a69e commit c8c1468

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎packages/rehype/src/core.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { CodeOptionsMeta, CodeOptionsThemes, CodeToHastOptions, HighlighterGeneric, TransformerOptions } from 'shiki/core'
1+
import type { CodeOptionsMeta, CodeOptionsThemes, CodeToHastOptions, CodeToHastOptionsCommon, HighlighterGeneric, TransformerOptions } from 'shiki/core'
22
import type { Element, Root } from 'hast'
33
import type { BuiltinTheme } from 'shiki'
44
import type { Transformer } from 'unified'
@@ -57,6 +57,7 @@ export type RehypeShikiCoreOptions =
5757
& TransformerOptions
5858
& CodeOptionsMeta
5959
& RehypeShikiExtraOptions
60+
& Omit<CodeToHastOptionsCommon, 'lang'>
6061

6162
const languagePrefix = 'language-'
6263

0 commit comments

Comments
 (0)
Please sign in to comment.