mdtoc

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 6 Imported by: 0

README

mdtoc

Toy utility to create Table of contents based on provided MD file. Can work with literals in header, but don't expect it to work with something too complicated.

Install

go install github.com/insomnes/mdtoc@latest

This command will download the package, install its dependencies, compile it, and place the binary in your $GOPATH/bin directory.

Usage

With defaults

mdtoc README.md
...

- [mdtoc](#mdtoc)
- [Install](#install)
- [Usage](#usage)
  - [With defaults](#with-defaults)
  - [With depth provided](#with-depth-provided)

With depth provided

mdtoc -d 1 README.md
...

- [mdtoc](#mdtoc)
- [Install](#install)
- [Usage](#usage)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL