yarner-toc

Crates.ioyarner-toc
lib.rsyarner-toc
version0.1.1
sourcesrc
created_at2021-03-04 23:32:26.196683
updated_at2021-03-04 23:32:26.196683
descriptionA Yarner plugin plugin to generate a Table of Content
homepagehttps://github.com/mlange-42/yarner-toc/
repositoryhttps://github.com/mlange-42/yarner-toc/
max_upload_size
id363972
size13,322
Martin Lange (mlange-42)

documentation

README

yarner-toc

Test status Crate

A Yarner plugin to generate a Table of Content.

Installation

Binaries

  1. Download the latest binaries for your platform
  2. Unzip somewhere
  3. Add the parent directory of the executable to your PATH environmental variable

Using cargo

> cargo install yarner-toc

Usage

Add a section plugin.toc to your Yarner.toml:

[plugin.toc]

Options

The plugin allows for different options, which are all optional:

[plugin.toc]
placeholder = "[[_TOC_]]"
min-level = 2
max-level = 5
Option Details Default
placeholder Placeholder to replace with the TOC [[_TOC_]]
min-level Minimum heading level to include 2
max-level Maximum heading level to include 5
Commit count: 12

cargo fmt