import type { BytemdPlugin } from 'bytemd' import rehypeHighlight, { Options } from 'rehype-highlight' export default function highlightSsr({ ignoreMissing = true, ...rest }: Options = {}): BytemdPlugin { return { rehype: (processor) => processor.use(rehypeHighlight, { ignoreMissing, ...rest }), } }