vuepress-plugin-permalink-pinyin

1.1.0 • Public • Published

vuepress-plugin-permalink-pinyin

npm LICENSE Dependency Status

A VuePress plugin which convert Chinese title to transliterate permalink.

/你今日饮咗未.md => /ni-jin-ri-yin-zuo-wei.html

Installation

Note: Work For VuePress 1.x.x

npm i vuepress-plugin-permalink-pinyin --save-dev
# or
yarn add vuepress-plugin-permalink-pinyin --dev

Usage

Modify your .vuepress/config.js and add into the plugins option.

plugins: ['permalink-pinyin']

Options

Pass any options of transliteration#slugify

plugins: {
  'permalink-pinyin': {
    lowercase: true, // Converted into lowercase, default: true
    separator: '-' // Separator of the slug, default: '-'
  }
}

Test

npm test

Related Projects

License

MIT License © viko16

/vuepress-plugin-permalink-pinyin/

    Package Sidebar

    Install

    npm i vuepress-plugin-permalink-pinyin

    Weekly Downloads

    10

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    5.96 kB

    Total Files

    7

    Last publish

    Collaborators

    • viko16