Wondering what’s next for npm?Check out our public roadmap! »

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

Install

npm i mdxfmt

DownloadsWeekly Downloads

1

Version

0.0.2-2

License

MIT

Unpacked Size

7.45 kB

Total Files

14

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar