@osn/previewer
TypeScript icon, indicating that this package has built-in type declarations

1.3.5 • Public • Published

@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"
/>

Readme

Keywords

none

Package Sidebar

Install

npm i @osn/previewer

Weekly Downloads

61

Version

1.3.5

License

none

Unpacked Size

23 kB

Total Files

7

Last publish

Collaborators

  • hyifeng
  • osn_jh
  • yoshiyuki_asakura
  • wliyongfeng