Socket
Socket
Sign inDemoInstall

minista-markdown

Package Overview
Dependencies
7
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    minista-markdown

React component to easily convert Markdown to HTML in minista


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

minista markdown

About

minista 内の Markdown を簡単に HTML へ変換する React コンポーネント。

Include

  • remark-gfm
  • rehype-highlight
  • rehype-react

How To Use

npm

$ npm install --save-dev minista-markdown
import { Markdown } from "minista-markdown"

const markdownText = `# test`

const H1Red = (props: any) => {
  return <h1 style={{ color: "red" }} {...props} />
}

const components = {
  h1: H1Red,
}

export const PageMarkdown = () => {
  return <Markdown content={markdownText} components={components} />
}

export default PageMarkdown

// => <h1 style="color:red">test</h1>

License

  • MIT

Credit

Keywords

FAQs

Last updated on 25 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc