Downloads
Release notes
* Without a #maxlength, the list of allowed tags may be limited to 128 characters which is too small (#809756: List of tags allowed in table headers cannot exceed 128 chars.)
* Moved the </li> so it properly closes after </ul> entries at all levels. #808942: Missing closing li tag after nested lists
* Added support for auto-section naming (id=...) without the title #809520: Anchor do not work for non-latin scripts: use simple numeric anchor
The module now offers several options:
- from the title
- randomly
- incrementing counter starting at 1
- section numbers (-1, -2, -2-1, -2-1-1, etc.)
- custom (requires another module!)
And you can change the word before and the separator.
* Fix unicity of id's even for pre-defined identifiers (and warn about it)
* Coder fixes (global variables, some else if.)
* Fixed a potential E_NOTICE error.
* Fixed DELETE of block variables with double % and {}.
* Fixed the 'allow_override' test #798126: Table doesn't start collapsed regardless of option set in input format
* Cancel the generation of the table of content if we are on the print page. (See #795206: Print module support, hide, no link, better CSS)
* Remove tags before creating anchor identifier #787046: Extra characters on the anchors
* Remove double underscore in the anchor identifiers.
* Added support to remove unwanted tags in the TOC header and characters from the header identifiers (#542780: Preserving HTML header attributes is causing side-effects., #784428: Rendering html elements with h tags, create option to strip all childs from the h tag in the table?)
* Fixed an E_NOTICE, we should not use $node if the node does not exist at all.
* Fixed an SQL statement that compared a string to a number (invalid for Postgresql)
* Always define a default identifier.
* Fixed the $toc by cloning the object (instead of copying the reference!?)
* Fixed the use of $matches[1], when [toc] is used, it does not get defined by the preg_replace() call #761780: Plenty of E_ALL notices in modules developed on installation with Drupal tarball
* Fixed the save function which uses tableofcontents_toc_automatic when it may not yet have been defined #761780: Plenty of E_ALL notices in modules developed on installation with Drupal tarball
* Breaking large pages in two with preg_replace() would fail on large pages (see #766302: Large documents get made empty when saving)
* Added a new filter that only purpose is to add identifiers to anchors.
* Added proper support for the table of contents block to work in case the node does not include a [toc] tag #746484: Anchor links when using Block
* Fixed the width of the table of contents for the block.
* Several fixes in regard to warnings in E_NOTICE mode #761780: Plenty of E_ALL notices in modules developed on installation with Drupal tarball and #761770: Use of undefined constant TABLEOFCONTENTS_REMOVE_PATTERN -
* Fixed the v-toc feature so it properly check whether the page is being displayed.