reactmd-brunch
This brunch plugin will compile markdown files into a React component.
Installation
$ npm install reactmd-brunch
Usage
; { return <div> <h1>Heading</h1> <MarkdownContent /> </div> ; }
Replacements
Given markdown file that looks like this:
# Lorem ipsum dolor sit amet! Lorem ipsum dolor sit amet, {{TOKEN1}} elit. Recusandae minus, doloremque [{{TOKEN2}}]({{TOKEN3}})
; const replacements = TOKEN1: 'consectetur adipisicing' TOKEN2: 'adipisci assumenda dolore' TOKEN3: 'adipisci eligendi'; { return <div> <h1>Heading</h1> <MarkdownContent replacements=replacements /> </div> ; }