From 1de9db127e11cd6f5f9af4cf2c9f1de7e3654f76 Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Tue, 15 Oct 2024 07:19:50 +0200 Subject: [PATCH] use getSingletonHighlighter --- packages/core/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 6e9074d..0aa6313 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -3,7 +3,7 @@ import type { Options, Theme, CharsHighlighterOptions } from './types'; import { type Highlighter, type CodeToHastOptions, - getHighlighter as defaultGetHighlighter, + getSingletonHighlighter as defaultGetHighlighter, } from 'shiki'; import { visit } from 'unist-util-visit'; import { toString as hastToString } from 'hast-util-to-string';