Skip to content

rkaneko/remark-react-lowlight

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remark-react-lowlight - Syntax highlighting for remark-react through lowlight

Usage:

...

import remark from 'remark';
import reactRenderer from 'remark-react';
import RemarkLowlight from 'remark-react-lowlight'

import js from 'highlight.js/lib/languages/javascript';

...
{remark().use(reactRenderer, {
  remarkReactComponents: {
    code: RemarkLowlight({
      js
    })
  }
}).process(readme)}
...

You can see remark-react-lowlight in use at react-component-boilerplate.

License

MIT.

About

Syntax highlighting for remark-react through lowlight (MIT)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%