reactdown

0.8.0 • Public • Published

reactdown

Write React components using markdown syntax:

---
title: Awesome blog post
some: metadata
...

# Hello, this is just a markdown

But it's actually a React component.

You can instantiate other components directly:

<TwitterFeed username="@andreypopp" />

^^ this is my twitter feed!

This will be compiled by reactdown into a CommonJS module which exports a React component.

Installation

% npm install reactdown

Usage

From command line:

% reactdown ./page.md > page.js

From Node:

var reactdown = require('reactdown');

reactdown('...');

As a browserify transform:

% browserify -t reactdown/transform ...

/reactdown/

    Package Sidebar

    Install

    npm i reactdown

    Weekly Downloads

    51

    Version

    0.8.0

    License

    MIT

    Last publish

    Collaborators

    • andreypopp