Skip to content

Commit

Permalink
fix(highlight): remove auto highlight subset
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Jun 16, 2020
1 parent 31fda51 commit f46c18b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/plugin-highlight/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ import rehypeHighlight from 'rehype-highlight';

export default function highlight(): BytemdPlugin {
return {
rehypeTransformer: (u) => u.use(rehypeHighlight, { ignoreMissing: true }),
rehypeTransformer: (u) =>
u.use(rehypeHighlight, { subset: false, ignoreMissing: true }),
markdownSanitizeSchema: {
attributes: {
code: ['className'],
},
},
};
}

0 comments on commit f46c18b

Please sign in to comment.