alejandrohdezma / sbt-mdoc-toc   0.4.1

Apache License 2.0 GitHub

Allows mdoc to generate table of contents for markdown files

Scala versions: 3.x 2.13 2.12
sbt plugins: 1.0

mdoc table-of-contents generator

This plugin enables generating a table of contents for markdown files using mdoc by adding the following code:

```scala mdoc:toc


Add the following line to your plugins.sbt file:

addSbtPlugin("com.alejandrohdezma" % "sbt-mdoc-toc" % "0.4.1")


Just add the following where you want to add the table of contents in your markdown file:

```scala mdoc:toc

And run sbt mdoc.