1.0.3 • Published 5 years ago
markdown-html-viewer v1.0.3
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.