We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31fda51 commit f46c18bCopy full SHA for f46c18b
packages/plugin-highlight/src/index.ts
@@ -3,6 +3,12 @@ import rehypeHighlight from 'rehype-highlight';
3
4
export default function highlight(): BytemdPlugin {
5
return {
6
- rehypeTransformer: (u) => u.use(rehypeHighlight, { ignoreMissing: true }),
+ rehypeTransformer: (u) =>
7
+ u.use(rehypeHighlight, { subset: false, ignoreMissing: true }),
8
+ markdownSanitizeSchema: {
9
+ attributes: {
10
+ code: ['className'],
11
+ },
12
13
};
14
}
0 commit comments