mdxfmt

0.0.2-2 • Public • Published

mdxfmt

An experimental code formatter for MDX.

Installation

npm i -D mdxfmt

Usage

const mdxfmt = require('mdxfmt')
 
const MDX = `
import { Box }
from 'grid-styled'
 
# Hello, world!
 
<div>
  hi   </div>
`
 
mdxfmt(MDX)

Options

Key Type Description
jsx {} Options object passed to Prettier for formatting JSX
md {} Options object passedt to Remark Stringify for formatting MD

Readme

Keywords

Package Sidebar

Install

npm i mdxfmt

Weekly Downloads

2

Version

0.0.2-2

License

MIT

Unpacked Size

7.45 kB

Total Files

14

Last publish

Collaborators

  • remcohaszing
  • johno
  • timneutkens
  • wooorm