diff --git a/packages/mdsvex/src/types.ts b/packages/mdsvex/src/types.ts index 4ccc85e9..3d5a25c8 100644 --- a/packages/mdsvex/src/types.ts +++ b/packages/mdsvex/src/types.ts @@ -152,8 +152,8 @@ export type Layout = Record; export type Highlighter = ( code: string, - lang: string | undefined, - metastring: string | undefined + lang: string | null | undefined, + metastring: string | null | undefined ) => string | Promise; interface HighlightOptions { /**