0.0.1-alpha.5 • Published 4 years ago
@githber/react-md v0.0.1-alpha.5
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
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
4 years ago
0.0.1-alpha.4
4 years ago
0.0.1-alpha.3
4 years ago
0.0.1-alpha.2
4 years ago
0.0.1-alpha.1
4 years ago