mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-06 06:58:04 +08:00
⚙️ Update svelte.config to use `makeSingletonHighlighter
` for shiki
This commit is contained in:
parent
9080802c3e
commit
bcc2d48bf6
@ -3,7 +3,9 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|||||||
|
|
||||||
// Extensions:
|
// Extensions:
|
||||||
import { mdsvex, escapeSvelte } from 'mdsvex';
|
import { mdsvex, escapeSvelte } from 'mdsvex';
|
||||||
import { getHighlighter } from 'shiki';
|
import { createHighlighter, makeSingletonHighlighter } from 'shiki';
|
||||||
|
|
||||||
|
const getHighlighter = makeSingletonHighlighter(createHighlighter);
|
||||||
|
|
||||||
// Markdown config:
|
// Markdown config:
|
||||||
/** @type {import('mdsvex').MdsvexOptions} */
|
/** @type {import('mdsvex').MdsvexOptions} */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user