Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

minista-markdown

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minista-markdown

React component to easily convert Markdown to HTML in minista

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 25 Apr 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc