0.0.1-alpha.5 • Published 5 years ago
@githber/react-md v0.0.1-alpha.5
install
npm i -S @githber/react-md
// or
yarn add @githber/react-mdusage
import { Markdown } from "@githber/react-md";
export () => <Markdown
content={{`# hello`}}
/>props
| param | desc | type | default |
|---|---|---|---|
| content | md content | string | |
| disableCatalogs | disable Catalogs | boolean | false |
| h | # Components | React.ComponentType[] ex: 'h1', ..., 'h6' | |
| code | Code Component | React.ComponentType props: {value, lang} | |
| inlineCode | InlineCode Component | React.ComponentType props: {value} | |
| strong | Strong Component | React.ComponentType | |
| emphasis | Emphasis Component | React.ComponentType | |
| blockquote | > Blockquote Component | React.ComponentType | |
| delete | React.ComponentType | ||
| image | ![Image]() Component | React.ComponentType props: {url: string; alt: string} | |
| link | Link Component | React.ComponentType | |
| lists | Lists Components | { order: React.ComponentType, unorder: React.ComponentType} | |
| listItem | - ListItem Component | React.ComponentType | |
| table | Table Component | React.ComponentType props: {align: (null| left| center | right)[]} | |
| tableRow | TableRow Component | React.ComponentType | |
| tableCells | TableCells Components | { th: React.ComponentType, td: React.ComponentType} props: {align} | |
| paragraph | Paragraph Component | React.ComponentType | |
| html | <Html> Wrap Component | React.ComponentType |
0.0.1-alpha.5
5 years ago
0.0.1-alpha.4
5 years ago
0.0.1-alpha.3
5 years ago
0.0.1-alpha.2
5 years ago
0.0.1-alpha.1
5 years ago