0.1.1 • Published 9 months ago

create-react-md-renderer v0.1.1

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

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} />
}
0.1.1

9 months ago

0.1.0

9 months ago