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

@mdx-js/runtime

Package Overview
Dependencies
Maintainers
3
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mdx-js/runtime - npm Package Compare versions

Comparing version 0.16.5 to 0.16.6

8

package.json
{
"name": "@mdx-js/runtime",
"version": "0.16.5",
"version": "0.16.6",
"description": "Parse and render MDX in a runtime environment",

@@ -33,4 +33,4 @@ "license": "MIT",

"dependencies": {
"@mdx-js/mdx": "^0.16.5",
"@mdx-js/tag": "^0.16.1",
"@mdx-js/mdx": "^0.16.6",
"@mdx-js/tag": "^0.16.6",
"buble": "^0.19.6"

@@ -53,3 +53,3 @@ },

},
"gitHead": "4fe045f1c65a3c05a41aac73a0b3918946ce938b"
"gitHead": "fc40de3ea63f58e8453458a54575734f40bcfd90"
}

@@ -28,2 +28,3 @@ # `@mdx-js/runtime`

// Provide custom components for markdown elements
const components = {

@@ -33,6 +34,16 @@ h1: props => <h1 style={{ color: 'tomato' }} {...props} />

const mdx = '# Hello, world!'
// Provide custom components that will be referenced as JSX
// in the markdown string
const scope = {
Demo: props => <h1>This is a demo component</h1>
}
const mdx = '
# Hello, world!
<Demo />
'
export default () => (
<MDX components={components}>{mdx}</MDX>
<MDX components={components} scope={scope}>{mdx}</MDX>
)

@@ -39,0 +50,0 @@ ```

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