remark-react-lowlight
remark-react
through lowlight
Syntax highlighting for Usage:
... ;;; ; ; const schema = Object; ...contents...
Notes
- The default santization schema (GitHub's) excludes
className
, but we want thosehljs-*
classes for our highlighting! Hence the custom object passed tosantization
. - You'll need stylings for the classes that Highlight.js adds. You can choose from a bunch bunch of pre-made stylesheets.
Contributors
- Juho Vepsäläinen - Creator and former owner of this project.
- Ryota - Fixed
props
for the lowlight component. - Henrik Lundgren - Fixed option property test, allowed skipping inline code tags.
- Shingo Sato - Patch duplicate pre tag.
License
MIT.