jgm / jgm/gitit

Add TOC class or id to HTML output

Open
#281 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
2.3k
Forks
231
PR merge metrics
No merged PRs in 30d

Description

It would be nice to be able to style the TOC with CSS.

Currently, this is hardly possible because the generated ul HTML element has no class or id.

In ContentTransformer.hs pandocToHtml:

``` .hs
writerTemplate = "$if(toc)$\n$toc$\n$endif$\n$body$"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.