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

@mapbox/jsxtreme-markdown-loader

Package Overview
Dependencies
Maintainers
14
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/jsxtreme-markdown-loader

Webpack loader to transform Markdown with interpolated JS and JSX into React components

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
14
Created
Source

@mapbox/jsxtreme-markdown-loader

Webpack loader to transform Markdown with interpolated JS and JSX into React components.

Runs files through the toComponentModule function of jsxtreme-markdown. Please read that documentation for more information.

For more information about jsxtreme-markdown features, read the README at the root of this monorepo.

Installation

npm install @mapbox/jsxtreme-markdown-loader

Usage

Follow the instructions for using Webpack loaders.

By default, the output of this loader is precompiled with Babel. You can bypass this step (and use your own compilation) by set the option precompile: false.

options

You can pass all of the options from toComponentModule.

Additional options for the loader:

getWrapper

Type: (resource: string) => string.

A function that receives the Webpack module's resource as an argument, and returns the path to a wrapper component. You can use this to automatically determine the wrapper component based on the Markdown file's path.

Keywords

FAQs

Package last updated on 04 Jun 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