acyort-toc

2.2.2 • Public • Published

acyort-toc

Toc Helper for AcyOrt

Install

$ npm i acyort-toc -S

Usage

# config.yml
# ...
plugins:
  - acyort-toc
# ...
<!-- post.html -->
<div class="toc">
{{ _toc(page.raw) }}
</div>

Text slugify API

const { slugify } = require('acyort-toc')

slugify('I ♥ Dogs') // i-love-dogs
slugify('这是@一#段$;¥中#文「【') // 这是-一-段-中-文

Test

$ npm i acyort -g

$ npm t

Readme

Keywords

Package Sidebar

Install

npm i acyort-toc

Weekly Downloads

11

Version

2.2.2

License

MIT

Unpacked Size

3.58 kB

Total Files

5

Last publish

Collaborators

  • loeify