Releases: jannewaren/jekyll-toc-plus
Releases · jannewaren/jekyll-toc-plus
v0.21.0
[0.21.0] - 2026-06-20
Added
no_toc_classconfig option to customize the class that excludes a heading
from the TOC (default:no_toc), mirroring the configurableno_toc_section_class.
Changed
- The
{% toc %}tag now requirestoc: truestrictly, matching thetoc/
toc_only/inject_anchorsfilters. Previously the tag accepted any truthy
front-matter value. If you relied on a non-truetruthy value (e.g.toc: "yes")
to render the tag, set it totoc: true.
Fixed
- Escape heading ids when interpolating them into
hrefattributes, preventing
HTML/attribute injection from an author-suppliedidcontaining characters
such as". - De-duplicate headings that share an explicit
id: a secondid="foo"now
links to#foo-1instead of emitting a duplicate#foofragment. Previously
only generated ids were de-duplicated.