This package has been deprecated

Author message:

Renamed to @mapbox/jsxtreme-markdown-loader

@mapbox/md-react-transformer-loader

0.2.0 • Public • Published

md-react-transformer-loader

Build Status

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

Runs files through the mdToComponentModule function of md-react-transformer.

You can pass all of the options from mdToComponentModule (e.g. a custom template).

Additional options for the loader:

  • getWrapper ?Function - A function that receives the module's resource as an argument, and returns the path to a wrapper component.

⚠️ The output of the default template includes JSX and ES2015 (class), so you should chain this loader with the babel-loader.

Package Sidebar

Install

npm i @mapbox/md-react-transformer-loader

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • mbx-npm-ci-production
  • mbx-npm-ci-staging
  • mbx-npm-advanced-actions-production
  • mbx-npm-advanced-actions-staging
  • mbx-npm-09-production
  • mbx-npm-08-production
  • mbx-npm-07-production
  • mbx-npm-06-production
  • mbx-npm-05-production
  • mbx-npm-04-production
  • mbx-npm-03-production
  • mbx-npm-02-production
  • mbx-npm-01-production
  • mbx-npm-02-staging
  • mapbox-npm-01
  • mapbox-npm-02
  • mapbox-npm-07
  • mapbox-npm-03
  • mapbox-npm-04
  • mapbox-npm-09
  • mapbox-npm-05
  • mapbox-npm-06
  • mapbox-npm-08
  • mapbox-npm-advanced-actions
  • mapbox-npm-ci
  • mapbox-npm
  • mapbox-admin
  • mapbox-machine-user