Transform all markdown titles with title.sh
npm install --save remark-capitalize
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]
}
}
]
}