Skip to content

Commit

Permalink
fix(highlight-ssr): migrate to rehype-highlight@6
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Jan 4, 2023
1 parent 2630833 commit 24d9090
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/plugin-highlight-ssr/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
}
}

0 comments on commit 24d9090

Please sign in to comment.