All Projects → bubkoo → Hexo Toc

bubkoo / Hexo Toc

Licence: mit
📖 Insert a markdown TOC before posts be rendered.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Hexo Toc

Hexo Server
Server module for Hexo.
Stars: ✭ 75 (-29.25%)
Mutual labels:  hexo
Hexo Theme Believe
A simple theme for hexo Sample:
Stars: ✭ 86 (-18.87%)
Mutual labels:  hexo
Poetries.github.io
博客,用于记录学习总结的地方。关注公众号「前端进阶之旅」,一起学习
Stars: ✭ 94 (-11.32%)
Mutual labels:  hexo
Meilidu Hexo
MeiliDu, beatuiful reading theme for Hexo.
Stars: ✭ 78 (-26.42%)
Mutual labels:  hexo
Hexo Album
add album&photos with Hexo blog
Stars: ✭ 85 (-19.81%)
Mutual labels:  hexo
Laraduoshuo
Laravel 5 实现的私有评论系统,用于 Hexo、Jekyll 等静态博客系统
Stars: ✭ 92 (-13.21%)
Mutual labels:  hexo
Hexoplusplus
🎁基于CloudFlareWorker的无服务器Hexo后端,目标:解决静态博客所有痛点[文章编辑、图片上传、博主活跃信息统计、博主说说、Twikoo加强版、阅读量统计【尚未完成】]
Stars: ✭ 72 (-32.08%)
Mutual labels:  hexo
Farbox Theme Anatole
This theme is desiged for FarBox,You can use it directly or modified it on FarBox
Stars: ✭ 99 (-6.6%)
Mutual labels:  hexo
Hexo Theme Webstack
A hexo theme based on webstack. | 一个基于webstack的hexo主题。
Stars: ✭ 86 (-18.87%)
Mutual labels:  hexo
Hexo Theme Material
a theme of hexo using the material design bootstrap
Stars: ✭ 93 (-12.26%)
Mutual labels:  hexo
Hexo.el
Use Hexo in Emacs elegantly
Stars: ✭ 78 (-26.42%)
Mutual labels:  hexo
Hexo Client
Hexo 博客系统客户端
Stars: ✭ 82 (-22.64%)
Mutual labels:  hexo
Hexo Hide Posts
A plugin to hide specific posts from your Hexo blog and make them only accessible by links. (隐藏 Hexo 文章)
Stars: ✭ 93 (-12.26%)
Mutual labels:  hexo
Hexo Theme Paperbox
A responsive paper-like theme for hexo blog.
Stars: ✭ 76 (-28.3%)
Mutual labels:  hexo
Hexo Theme Oranges
🍊A simple hexo theme of minimalism
Stars: ✭ 95 (-10.38%)
Mutual labels:  hexo
Markdown Toc
Generate a markdown TOC (table of contents) for a README or any markdown files, using remarkable. Used by assemble, verb, and lots of other projects on GitHub. API and CLI.
Stars: ✭ 1,185 (+1017.92%)
Mutual labels:  toc
Hexo Theme Melody
🎹A simple & beautiful & fast theme for Hexo.
Stars: ✭ 1,306 (+1132.08%)
Mutual labels:  hexo
Hexo Theme Doku
📜 Doku, a Hexo theme designed for writing documents.
Stars: ✭ 101 (-4.72%)
Mutual labels:  hexo
Flexy
A responsive theme for Hexo
Stars: ✭ 97 (-8.49%)
Mutual labels:  hexo
Hexo Symbols Count Time
Symbols count and time to read of articles for Hexo.
Stars: ✭ 93 (-12.26%)
Mutual labels:  hexo

hexo-toc

MIT License

npm: Package Quality

Insert a markdown TOC(Table Of Content) before posts be rendered.

Unlike the native toc helper, this plugin will inject a TOC only when a placeholder(<!-- toc -->) found in the raw markdown files. And the TOC will be injected after the placeholder.

All you need to do is placing a placeholder(<!-- toc -->) in your post when and where needed.

Note: this plugin will not mangle your posts(markdown files), so you can use it bold.

Install

npm install hexo-toc --save

Options

All the options of markdown-toc, slugify function, and heading anchor options can be specified as follow in you _config.yml:

toc:
  maxdepth: 3
  class: toc
  slugify: transliteration
  decodeEntities: false
  anchor:
    position: after
    symbol: '#'
    style: header-anchor
  • maxdepth: Use headings whose depth is at most maxdepth.
  • class: The CSS Class for the toc. (Default is false)
  • slugify: Choose which slugify function you want to use. Currently support uslug (Default) and transliteration.
  • decodeEntities: Select whether to enable decode entities. ( Default is false and please see #15).
  • anchor: Whether should have an anchor for each headings. (Default is false)
    • position: Where should the anchor be, before the title, or after the title. (Default is after);
    • symbol: Which symbol you want the anchor be. (Default is #);
    • style: The CSS class for the anchor, (Default is header-anchor);

Known issues

#8

Working with hexo-renderer-markdown-it.

# Markdown-it config
## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki
markdown:
  render:
    html: true

Related

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].