2.0.0 • Published 2 years ago

blog-markdown-widget v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

blog-markdown-widget

Custom widget for converting markdown blog articles to HTML

NPM JavaScript Style Guide

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