0.0.1-alpha.5 • Published 4 years ago

@githber/react-md v0.0.1-alpha.5

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

install

npm i -S @githber/react-md
// or
yarn add @githber/react-md

usage

import { Markdown } from "@githber/react-md";

export () => <Markdown
  content={{`# hello`}}
/>

props

paramdesctypedefault
contentmd contentstring
disableCatalogsdisable Catalogsbooleanfalse
h# ComponentsReact.ComponentType[] ex: 'h1', ..., 'h6'
codeCode ComponentReact.ComponentType props: {value, lang}
inlineCodeInlineCode ComponentReact.ComponentType props: {value}
strongStrong ComponentReact.ComponentType
emphasisEmphasis ComponentReact.ComponentType
blockquote> Blockquote ComponentReact.ComponentType
deleteDelete ComponentReact.ComponentType
image![Image]() ComponentReact.ComponentType props: {url: string; alt: string}
linkLink ComponentReact.ComponentType
listsLists Components{ order: React.ComponentType, unorder: React.ComponentType}
listItem- ListItem ComponentReact.ComponentType
tableTable ComponentReact.ComponentType props: {align: (null| left| center | right)[]}
tableRowTableRow ComponentReact.ComponentType
tableCellsTableCells Components{ th: React.ComponentType, td: React.ComponentType} props: {align}
paragraphParagraph ComponentReact.ComponentType
html<Html> Wrap ComponentReact.ComponentType