From c8c1468d449c1ee96047b885728af549e28b28da Mon Sep 17 00:00:00 2001 From: fwqaaq Date: Fri, 26 Jul 2024 05:06:44 +0800 Subject: [PATCH] fix(rehype): add the misssing `CodeToHastOptionsCommon` to `RehypeShikiCoreOptions` for `rehype` plugin (#726) --- packages/rehype/src/core.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/rehype/src/core.ts b/packages/rehype/src/core.ts index ec49121ff..da22aa24a 100644 --- a/packages/rehype/src/core.ts +++ b/packages/rehype/src/core.ts @@ -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' @@ -57,6 +57,7 @@ export type RehypeShikiCoreOptions = & TransformerOptions & CodeOptionsMeta & RehypeShikiExtraOptions + & Omit const languagePrefix = 'language-'