0.0.1 • Published 11 months ago

react-markdown-dom v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

React Markdown DOM

A React component that renders Markdown as HTML.

Installation

npm install react-markdown-dom

Usage

import React from 'react'
import ReactMarkdown from 'react-markdown-dom'
import 'react-markdown-dom/dist/index.css' // If you want to use the default theme "light" or "dark"

const App = () => <ReactMarkdown source="# Hello, world!" />

API Reference

PropsTypeDefaultDescription
sourcestringMarkdown source code.
themestringlightTheme name.

License

MIT

0.0.1

11 months ago