From 93d17b9cc4a3f53dc2059e44a691a28797422d21 Mon Sep 17 00:00:00 2001 From: Jannis Vajen Date: Thu, 5 May 2022 21:53:38 +0200 Subject: Support custom CSS class on TOC element Closes #1224 --- docs/change_log/release-3.4.md | 4 ++++ docs/extensions/toc.md | 3 +++ 2 files changed, 7 insertions(+) (limited to 'docs') diff --git a/docs/change_log/release-3.4.md b/docs/change_log/release-3.4.md index 71f9a20..025d443 100644 --- a/docs/change_log/release-3.4.md +++ b/docs/change_log/release-3.4.md @@ -51,6 +51,10 @@ The following new features have been included in the 3.3 release: Ex: `[{}]` will give [1], `({})` will give (1), or just by default, the current behavior: 1. +* The [Table of Contents](../extensions/toc.md) extension now accepts a `toc_class` + parameter which can be used to set the CSS class(es) on the `
` that contains the + Table of Contents (#1224). + ## Bug fixes The following bug fixes are included in the 3.4 release: diff --git a/docs/extensions/toc.md b/docs/extensions/toc.md index 8dce335..8d7bd35 100644 --- a/docs/extensions/toc.md +++ b/docs/extensions/toc.md @@ -151,6 +151,9 @@ The following options are provided to configure the output: * **`title`**: Title to insert in the Table of Contents' `
`. Defaults to `None`. +* **`toc_class`**: + CSS class(es) used for the `
` containing the Table of Contents. Defaults to `toc`. + * **`anchorlink`**: Set to `True` to cause all headers to link to themselves. Default is `False`. -- cgit v1.2.1