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

@mdx-js/runtime

Package Overview
Dependencies
Maintainers
2
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mdx-js/runtime

Parse and render MDX in a runtime environment

  • 0.13.1-0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14K
decreased by-7.82%
Maintainers
2
Weekly downloads
 
Created
Source

Runtime MDX

Parse and render MDX in a runtime environment

:warning: Warning

This is not the preferred way to use MDX since it introduces a substantial amount of overhead and dramatically increases bundle sizes. It should also not be used with user input that isn't sandboxed.

Installation

npm install --save @mdx-js/runtime

Usage

import React from 'react'
import MDX from '@mdx-js/runtime'

const components = {
  h1: props => <h1 style={{ color: 'tomato' }} {...props} />
}

const mdx = '# Hello, world!'

export default () => (
  <MDX components={components}>{mdx}</MDX>
)
  • MDX Docs

Keywords

FAQs

Package last updated on 06 Jul 2018

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