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

@startupjs/mdx

Package Overview
Dependencies
Maintainers
7
Versions
444
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@startupjs/mdx

MDX provider with a set of custom components for react-native support and syntax highlighting

  • 0.22.0-alpha.29
  • npm
  • Socket score

Version published
Weekly downloads
49
decreased by-48.42%
Maintainers
7
Weekly downloads
 
Created
Source

startupjs mdx

MDXProvider with a set of custom components for react-native support and syntax highlighting

Installation

yarn add @startupjs/mdx

Usage

Wrap your <App /> into the MDXProvider. This will allow you to import and properly render the mdx component anywhere inside the <App />.

import { MDXProvider } from '@startupjs/mdx'

<MDXProvider>
  <App />
</MDXProvider>

Custom components

You can specify custom markdown components by providing the components prop:

import { MDXProvider } from '@startupjs/mdx'

<MDXProvider components={{ h1: props => <Text style={ color: 'red' } {...props} /> }}>
  <App />
</MDXProvider>

For the full list of components, look here

Licence

MIT

FAQs

Package last updated on 25 May 2020

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