blog-markdown-widget
v2.0.0
Published
Custom widget for converting markdown blog article to HTML
Downloads
3
Readme
blog-markdown-widget
Custom widget for converting markdown blog articles to HTML
Install
npm install --save blog-markdown-widget
Usage
import React, { Component } from "react";
import BlogMarkdownComponent from "blog-markdown-widget";
import "blog-markdown-widget/dist/index.css";
class Example extends Component {
render() {
const markdown = `A paragraph with *emphasis* and **strong importance**.
> A block quote with ~strikethrough~ and a URL: https://reactjs.org.
* Lists
* [ ] todo
* [x] done
A table:
| a | b |
| - | - |
| a | b |
| - | - |
![open-source-markdown-to](https://innovationorigins.com/app/uploads/2019/02/open-source.jpg)
<h1>HELLOOOOO</h1>
`;
return <BlogMarkdownComponent text={markdown} />;
}
}
License
MIT © kasdihacene