remark-react-codemirror
Syntax highlighting for remark-react through CodeMirror.
Usage
Notes
- The default santization schema (GitHub's) excludes
className
, but we want thosecm-*
classes for our highlighting! Hence the custom object passed tosantization
. - You'll need stylings for the classes that CodeMirror adds. You can choose from a bunch bunch of pre-made stylesheets.