1.0.3 • Published 5 years ago

markdown-html-viewer v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

markdown-html-viewer

Get markdown(.md) from path / url , Display as HTML / TEXT

Installation

To install, use npm or yarn

npm install markdown-html-viewer

yarn add markdown-html-viewer

Usage

import markdown from "markdown-html-viewer";

const url = `markdown-file url/path`;

// display TEXT
markdown.convert(url).then(data => {
  console.log(data);
});

// display HTML
markdown.convert(url, "html").then(data => {
  console.log(data); // convert to html
});

## License

Released under the MIT license.

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago