@readme/markdown
ReadMe's React-based Markdown parser
Last updated 6 days ago by rafegoldberg .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @readme/markdown 
SYNC missed versions from official npm registry.

@readme/markdown

A Unified-based Markdown parser for ReadMe. CI Status

npm install --save @readme/markdown

Usage

By default, the updated markdown package exports a function which takes a string of ReadMe-flavored markdown and returns a tree of React components:

import React from 'react';
import rdmd from "@readme/markdown";

export default ({ body }) => (
  <div className="markdown-body">
    {rdmd(body)}
  </div>
);

Export Methods

In addition to the default processor, the package exports some other methods for transforming ReadMe-flavored markdown:

Export Description Arguments
react (default) returns a VDOM tree object text, options
md transform mdast in to ReadMe-flavored markdown tree, options
html transform markdown in to HTML text, options
mdast transform markdown to an mdast object text, options
hast transform markdown to HAST object text, options
plain transform markdown to plain text text, options
utils contexts, defaults, helpers, etc. N/A

Settings & Options

Each processor method takes an options object, which you can use to customize various outputs. Among them

Flavored Syntax

Our old editor compiled custom "Magic Block" components from a JSON-based syntax. To provide seamless backwards-compatibility, the updated Markdown processor ships with built in support for parsing this old format and transpiling it in to standard, GitHub-flavored markdown. We've also sprinkled a bit of our own syntactic sugar on top, which let's you supercharge your docs. Read more about ReadMe's flavored syntax!

Credits

Current Tags

  • 6.17.2                                ...           latest (6 days ago)

91 Versions

  • 6.17.2                                ...           6 days ago
  • 6.17.1                                ...           7 days ago
  • 6.15.2                                ...           24 days ago
  • 6.15.1                                ...           a month ago
  • 6.15.0                                ...           a month ago
  • 6.14.0                                ...           a month ago
  • 6.13.0                                ...           a month ago
  • 6.12.0                                ...           a month ago
  • 6.10.2                                ...           2 months ago
  • 6.10.1                                ...           2 months ago
  • 6.10.0                                ...           2 months ago
  • 6.9.6                                ...           3 months ago
  • 6.9.5                                ...           3 months ago
  • 6.9.4                                ...           3 months ago
  • 6.9.2                                ...           3 months ago
  • 6.9.1                                ...           3 months ago
  • 6.9.0                                ...           3 months ago
  • 6.8.0                                ...           3 months ago
  • 6.7.0                                ...           3 months ago
  • 6.6.8                                ...           3 months ago
  • 6.6.7                                ...           3 months ago
  • 6.6.6                                ...           3 months ago
  • 6.6.4                                ...           3 months ago
  • 6.6.3                                ...           3 months ago
  • 6.6.1                                ...           3 months ago
  • 6.6.0                                ...           3 months ago
  • 6.5.0                                ...           3 months ago
  • 6.4.0                                ...           4 months ago
  • 6.3.12                                ...           4 months ago
  • 6.3.9                                ...           4 months ago
  • 6.3.7                                ...           4 months ago
  • 6.3.5                                ...           4 months ago
  • 6.3.4                                ...           4 months ago
  • 6.3.0                                ...           4 months ago
  • 6.2.0                                ...           4 months ago
  • 6.1.0                                ...           4 months ago
  • 6.0.15                                ...           4 months ago
  • 6.0.13                                ...           5 months ago
  • 6.0.12                                ...           5 months ago
  • 6.0.11                                ...           5 months ago
  • 6.0.10                                ...           5 months ago
  • 6.0.6                                ...           5 months ago
  • 6.0.5                                ...           5 months ago
  • 6.0.3                                ...           5 months ago
  • 6.0.2                                ...           5 months ago
  • 6.0.0                                ...           5 months ago
  • 5.0.0                                ...           5 months ago
  • 4.19.2                                ...           5 months ago
  • 4.18.2                                ...           6 months ago
  • 5.0.0-alpha.4                                ...           6 months ago
  • 4.18.0                                ...           6 months ago
  • 4.16.0                                ...           6 months ago
  • 5.0.0-alpha.0                                ...           7 months ago
  • 4.15.0                                ...           7 months ago
  • 4.14.0                                ...           8 months ago
  • 4.13.0                                ...           8 months ago
  • 4.12.1                                ...           9 months ago
  • 4.12.0                                ...           9 months ago
  • 4.11.0                                ...           9 months ago
  • 4.10.5                                ...           9 months ago
  • 4.10.3                                ...           10 months ago
  • 4.10.0                                ...           10 months ago
  • 4.9.0                                ...           10 months ago
  • 4.8.7                                ...           10 months ago
  • 4.8.6                                ...           10 months ago
  • 4.8.5                                ...           a year ago
  • 4.8.4                                ...           a year ago
  • 4.8.1                                ...           a year ago
  • 4.7.2                                ...           a year ago
  • 4.7.0                                ...           a year ago
  • 4.6.0                                ...           a year ago
  • 4.5.2                                ...           a year ago
  • 4.3.2                                ...           a year ago
  • 4.3.1                                ...           a year ago
  • 4.3.0                                ...           a year ago
  • 4.2.0                                ...           a year ago
  • 4.1.1                                ...           a year ago
  • 4.0.0                                ...           a year ago
  • 3.1.0                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.5.0                                ...           2 years ago
  • 2.4.0                                ...           2 years ago
  • 2.3.0                                ...           2 years ago
  • 2.2.11                                ...           2 years ago
  • 2.2.9                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 1.0.0-1                                ...           2 years ago
  • 1.0.0-0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 82
Last Day 0
Last Week 82
Last Month 68

Copyright 2014 - 2016 © taobao.org |