create-react-md-renderer
v0.1.1
Published
Render Markdown (MD) in React with ease. This package offers a simple and customizable way to display Markdown content in your React applications without any fuss.
Downloads
4
Readme
Install
npm i --save create-react-md-renderer
# or
yarn add create-react-md-renderer
Limitations
Supported syntax:
- Headings
- Bold
**bold** __bold__
- Italic
*italic* _italic_
- Bold and italic
**_bold and italic_** ***bold and italic*** ___bold and italic___
- Inline code
\
code`` - Code block:
\`\`\`js
// insert your code here
// ...
\`\`\`
- Ordered lists using decimals
1. list item
- Unordered lists using dashes
- list item
- Sublists by identation
- Links with or without title
Usage
Basic usage:
function App() {
const MarkdownRenderer = createMarkdownRenderer()
const markdown = "# Heading!"
return <MarkdownRenderer markdown={markdown} />
}