Skip to content

Commit

Permalink
fix(rehype): add the misssing CodeToHastOptionsCommon to `RehypeShi…
Browse files Browse the repository at this point in the history
…kiCoreOptions` for `rehype` plugin (#726)
  • Loading branch information
fwqaaq authored Jul 25, 2024
1 parent 5e2a69e commit c8c1468
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rehype/src/core.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { CodeOptionsMeta, CodeOptionsThemes, CodeToHastOptions, HighlighterGeneric, TransformerOptions } from 'shiki/core'
import type { CodeOptionsMeta, CodeOptionsThemes, CodeToHastOptions, CodeToHastOptionsCommon, HighlighterGeneric, TransformerOptions } from 'shiki/core'
import type { Element, Root } from 'hast'
import type { BuiltinTheme } from 'shiki'
import type { Transformer } from 'unified'
Expand Down Expand Up @@ -57,6 +57,7 @@ export type RehypeShikiCoreOptions =
& TransformerOptions
& CodeOptionsMeta
& RehypeShikiExtraOptions
& Omit<CodeToHastOptionsCommon, 'lang'>

const languagePrefix = 'language-'

Expand Down

0 comments on commit c8c1468

Please sign in to comment.