0.0.0 • Published 7 years ago
parcel-plugin-mdxc v0.0.0
Parcel plugin for MDXC
Use React Components with Markdown in Parcel with MDXC.
Plugin originally forked and modified from parcel-plugin-markdown.
Not sure why I didn't just use https://github.com/hamlim/parcel-plugin-mdx. Oh well.
Usage
yarn add --dev parcel-plugin-mdxcimport React from "react";
import { render } from "react-dom";
import Document from "./Markdown.md";
render(<Document />, document.querySelector("#root"));Config
https://github.com/jamesknelson/mdxc#api(MDXC config)
// package.json
// If you want to pass options to mdxc
{
  "name": "ABC",
  "mdxc": {
    "linkify": true,
    "typographer": true
  }
}This plugin also supports config in .mdxcrc, mdxc.config.js.
Example
git clone https://github.com/ifyoumakeit/parcel-plugin-mdxc
cd parcel-plugin-mdxc
yarn
cd examples
yarn
yarn startTests
Run with Jest.
yarn testTODO
- Add image support
0.0.0
7 years ago
0.0.0-beta0.6
7 years ago
0.0.0-beta0.5
7 years ago
0.0.0-beta0.4
7 years ago
0.0.0-beta0.3
7 years ago
0.0.0-beta0.2
7 years ago
0.0.0-beta0.1
7 years ago
0.0.0-beta0.0
7 years ago