markdown-html-viewer

1.0.3 • Public • Published

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.

Package Sidebar

Install

npm i markdown-html-viewer

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

8.86 kB

Total Files

10

Last publish

Collaborators

  • shou6