Releases: Sommerregen/grav-plugin-toc
Releases · Sommerregen/grav-plugin-toc
Grav Plugin Toc v1.4.1
Bugfix:
- Fixed new
slug.granularity
option intoc.yaml
andREADME.md
Grav Plugin Toc v1.4.0
New:
- Added new
active
setting that supersedesprocess
option - Added
slug.granularity
option for slug generation - Added and expose TOC generation (see #8)
Improved:
- Add a "headeranchor" class to the
hx
tag (thanks to @Lamecarlate) - Moved template to new plugin template location
- Improved styling of code elements in table of contents
- Expose more plugin strings for translations
- Strip tags in title attributes
- Dropped
iconv
dependency
Bugfix:
Grav Plugin Toc v1.3.1
Grav Plugin Toc v1.3.0
Grav Plugin Toc v1.2.1
Grav Plugin Toc v1.2.0
New:
- Added admin configurations (requires Grav 0.9.34+)
- Added multi-language support (requires Grav 0.9.33+)
- Added
placement
,visible
,icon
andclass
option to customize anchor look - Added buitlin CSS class to suppress anchor links with the
no-anchor
class - Added
{{% toc %}}
shortcode
Improved:
- Switched to
onBuildPagesInitialized
event (requires Grav 0.9.29+) - Improved and use language translation for language specific slug generation (requires Grav 0.9.34+)
- Updated
README.md
Bugfix:
- Strip tags in title attribute
- Normalize tags in TOC (see
<code>
element) - Ignore empty headings
Grav Plugin Toc v1.1.0
Improved:
- Improved
anchorlinks
generation - Truncate headings to a maximum width of 32 chars in TOC and MINITOC
- Corrected spelling and markup in README.md
Grav Plugin Toc v1.0.0
This plugin automagically generates a (minified) Table of Contents based on special markers in the document and adds it into the resulting HTML document.
About
Toc
is a plugin for Grav used to generate Table of Contents from a Markdown document based on special markers. The markers are [TOC]
and [MINITOC]
, where the latter can be used for a (minified) Table of Contents to give an overview of the current content of the section. By default, the Table of Contents links to the contents (anchorlinks
) and adds visible permanent links (permalinks
) to all headers. Further, all headers will automatically have unique id attributes generated based upon the text of the header. See how it looks like: