# reactmd-brunch

> This brunch plugin will compile markdown files into a React component.

Latest version **0.1.4** (published 2017-03-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install reactmd-brunch
pnpm add reactmd-brunch
yarn add reactmd-brunch
bun add reactmd-brunch
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2017-03-30 |
| First published | 2017-03-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | 32bitkid |

## Links

- npm: https://www.npmjs.com/package/reactmd-brunch
- npm.io page: https://npm.io/package/reactmd-brunch

## Recent versions

- 0.1.4 (latest) — 2017-03-30
- 0.1.3 — 2017-03-25
- 0.1.2 — 2017-03-24
- 0.1.1 — 2017-03-24
- 0.1.0 — 2017-03-24
- 0.0.1 — 2017-03-06

## README

# reactmd-brunch

This brunch plugin will compile markdown files into a React component.

## Installation

```$ npm install reactmd-brunch```

## Usage

```js
import { Component } from 'react';
import MarkdownContent from './content.md'

export default class MyComponent extends Component {
  render() {
    return (
      <div>
        <h1>Heading</h1>
        <MarkdownContent />
      </div>
    );
  }
}
```

## Replacements

Given markdown file that looks like this:
```md
# Lorem ipsum dolor sit amet!

Lorem ipsum dolor sit amet, {{TOKEN1}} elit. Recusandae minus, doloremque [{{TOKEN2}}]({{TOKEN3}})
```

```js
import { Component } from 'react';
import MarkdownContent from './content.md'

const replacements = {
  TOKEN1: 'consectetur adipisicing',
  TOKEN2: 'adipisci assumenda dolore',
  TOKEN3: 'adipisci eligendi',
};

export default class MyComponent extends Component {
  render() {
    return (
      <div>
        <h1>Heading</h1>
        <MarkdownContent replacements={replacements} />
      </div>
    );
  }
}
```

---
_Source: https://npm.io/package/reactmd-brunch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
