@osn/previewer
v1.4.4
Published
Preview markdown/html.
Downloads
51
Keywords
Readme
@osn/previewer
Preview markdown/html.
Usage
yarn add @osn/previewer
import { HtmlPreviewer, MarkdownPreviewer, renderMentionIdentityUserPlugin } from "@osn/previewer"
import "@osn/previewer/styles.css"
function MentionIdentityUser({ address, network }) {
return <a>{address}</a>
}
<HtmlPreviewer
content="<div>html content</div>"
plugins={[renderMentionIdentityUserPlugin(<MentionIdentityUser />)]} // optional
/>
<MarkdownPreviewer
content="markdown content"
/>