项目作者: vercel

项目描述 :
Transform all markdown titles with title.sh
高级语言: JavaScript
项目地址: git://github.com/vercel/remark-capitalize.git
创建时间: 2018-03-20T13:31:52Z
项目社区:https://github.com/vercel/remark-capitalize

开源协议:MIT License

下载


Remark Capitalize

Transform all markdown titles with title.sh

Getting started

  1. 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:

  1. const remarkCapitalize = require('remark-capitalize')
  2. // part of webpack.config.js
  3. {
  4. test: /\.mdx$/,
  5. use: [
  6. defaultLoaders.babel,
  7. {
  8. loader: '@compositor/markdown-loader',
  9. options: {
  10. plugins: [remarkCapitalize]
  11. }
  12. }
  13. ]
  14. }