Transform all markdown titles with title.sh
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.yarnrc Pinned dependencies Apr 29, 2018
LICENSE
README.md Added more special words (#2) Jul 11, 2018
index.js Initial commit Mar 20, 2018
package.json
yarn.lock Added more special words (#2) Jul 11, 2018

README.md

Remark Capitalize

Transform all markdown titles with title.sh

Getting started

npm install --save remark-capitalize

Usage with MDX

mdx uses remark to transform an MDX document into JSX tags. It has support for passing plugins through the loader options:

const remarkCapitalize = require('remark-capitalize')
// part of webpack.config.js
{
  test: /\.mdx$/,
  use: [
    defaultLoaders.babel,
    {
      loader: '@compositor/markdown-loader',
      options: {
        plugins: [remarkCapitalize]
      }
    }
  ]
}