@startupjs/mdx
MDX provider with a set of custom components for react-native support and syntax highlighting
Last updated a day ago by yska .
Original npm · Tarball · package.json
$ cnpm install @startupjs/mdx 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.22.0-canary.0                                ...           canary (3 months ago)
  • 0.23.45                                ...           latest (a day ago)
  • 0.22.0-alpha.46                                ...           next (3 months ago)

77 Versions

  • 0.23.45                                ...           a day ago
  • 0.23.44                                ...           a day ago
  • 0.23.42                                ...           23 days ago
  • 0.23.41                                ...           23 days ago
  • 0.23.40                                ...           24 days ago
  • 0.23.39                                ...           a month ago
  • 0.23.38                                ...           a month ago
  • 0.23.34                                ...           a month ago
  • 0.23.33                                ...           a month ago
  • 0.23.31                                ...           a month ago
  • 0.23.30                                ...           2 months ago
  • 0.23.29                                ...           2 months ago
  • 0.23.28                                ...           2 months ago
  • 0.23.27                                ...           2 months ago
  • 0.23.26                                ...           2 months ago
  • 0.23.25                                ...           2 months ago
  • 0.23.24                                ...           2 months ago
  • 0.23.23                                ...           2 months ago
  • 0.23.22                                ...           2 months ago
  • 0.23.20                                ...           2 months ago
  • 0.23.19                                ...           2 months ago
  • 0.23.18                                ...           2 months ago
  • 0.23.17                                ...           3 months ago
  • 0.23.16                                ...           3 months ago
  • 0.23.15                                ...           3 months ago
  • 0.23.10                                ...           3 months ago
  • 0.23.0                                ...           3 months ago
  • 0.22.12                                ...           3 months ago
  • 0.22.11                                ...           3 months ago
  • 0.22.10                                ...           3 months ago
  • 0.22.9                                ...           3 months ago
  • 0.22.6                                ...           3 months ago
  • 0.22.5                                ...           3 months ago
  • 0.22.3                                ...           3 months ago
  • 0.22.2                                ...           3 months ago
  • 0.22.1                                ...           3 months ago
  • 0.22.0                                ...           3 months ago
  • 0.22.0-canary.0                                ...           3 months ago
  • 0.22.0-alpha.46                                ...           3 months ago
  • 0.22.0-alpha.45                                ...           3 months ago
  • 0.22.0-alpha.44                                ...           3 months ago
  • 0.22.0-alpha.43                                ...           3 months ago
  • 0.22.0-alpha.42                                ...           3 months ago
  • 0.22.0-alpha.41                                ...           3 months ago
  • 0.22.0-alpha.40                                ...           4 months ago
  • 0.22.0-alpha.33                                ...           4 months ago
  • 0.22.0-alpha.30                                ...           4 months ago
  • 0.22.0-alpha.29                                ...           4 months ago
  • 0.22.0-alpha.28                                ...           4 months ago
  • 0.22.0-alpha.27                                ...           4 months ago
  • 0.22.0-alpha.26                                ...           4 months ago
  • 0.22.0-alpha.25                                ...           4 months ago
  • 0.22.0-alpha.24                                ...           4 months ago
  • 0.22.0-alpha.23                                ...           4 months ago
  • 0.22.0-alpha.22                                ...           4 months ago
  • 0.22.0-alpha.20                                ...           4 months ago
  • 0.22.0-alpha.18                                ...           5 months ago
  • 0.22.0-alpha.17                                ...           5 months ago
  • 0.22.0-alpha.13                                ...           5 months ago
  • 0.22.0-alpha.12                                ...           5 months ago
  • 0.22.0-alpha.11                                ...           5 months ago
  • 0.22.0-alpha.10                                ...           5 months ago
  • 0.22.0-alpha.9                                ...           5 months ago
  • 0.22.0-alpha.7                                ...           5 months ago
  • 0.22.0-alpha.0                                ...           5 months ago
  • 0.21.1                                ...           5 months ago
  • 0.21.0                                ...           5 months ago
  • 0.20.0                                ...           5 months ago
  • 0.19.3                                ...           5 months ago
  • 0.19.2                                ...           5 months ago
  • 0.19.1                                ...           5 months ago
  • 0.19.0                                ...           6 months ago
  • 0.18.4                                ...           6 months ago
  • 0.18.3                                ...           6 months ago
  • 0.18.2                                ...           6 months ago
  • 0.18.1                                ...           6 months ago
  • 0.18.0                                ...           6 months ago
Downloads
Today 0
This Week 22
This Month 0
Last Day 22
Last Week 0
Last Month 67
Dependencies (3)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |