0.0.1 • Published 11 months ago
react-markdown-dom v0.0.1
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
Props | Type | Default | Description |
---|---|---|---|
source | string | Markdown source code. | |
theme | string | light | Theme name. |
License
0.0.1
11 months ago