blog-markdown-widget

2.0.0 • Public • Published

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

/blog-markdown-widget/

    Package Sidebar

    Install

    npm i blog-markdown-widget

    Weekly Downloads

    0

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    11.3 MB

    Total Files

    9

    Last publish

    Collaborators

    • wissace