From 24d90909a8e8134dd85144319c9ab963512ace1d Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Wed, 4 Jan 2023 13:28:26 +0800 Subject: [PATCH] fix(highlight-ssr): migrate to rehype-highlight@6 --- packages/plugin-highlight-ssr/src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/plugin-highlight-ssr/src/index.ts b/packages/plugin-highlight-ssr/src/index.ts index 20f3c9f..a0f3ce9 100644 --- a/packages/plugin-highlight-ssr/src/index.ts +++ b/packages/plugin-highlight-ssr/src/index.ts @@ -2,12 +2,11 @@ import type { BytemdPlugin } from 'bytemd' import rehypeHighlight, { Options } from 'rehype-highlight' export default function highlightSsr({ - subset = false, ignoreMissing = true, ...rest }: Options = {}): BytemdPlugin { return { rehype: (processor) => - processor.use(rehypeHighlight, { subset, ignoreMissing, ...rest }), + processor.use(rehypeHighlight, { ignoreMissing, ...rest }), } }