Loading...
 
Skip to main content

Automatic table of contents (auto-TOC) shows calls to FOOTNOTE plugin as regular text without link

Status
Open
Subject
Automatic table of contents (auto-TOC) shows calls to FOOTNOTE plugin as regular text without link
Version
15.x
18.x
Category
  • Bug
Feature
Auto TOC
Wiki Plugin (extends basic syntax)
Resolution status
New
Submitted by
Philippe Cloutier
Lastmod by
Philippe Cloutier
Rating
(0)
Description

This bug is similar to Automatic table of contents (auto-TOC) shows calls to SUP plugin as regular text, but about the FOOTNOTE plugin instead of SUP. As explained there:

Chealer wrote:
The auto-TOC implementation does not know how to deal with advanced titles. When titles contain plugin calls, since the links can't contain HTML, auto-TOC just strips HTML tags (see the declaration of aText in autoToc.js (var aText = $.trim($this.text());), which may or may not give a valid result.


For FOOTNOTE, this causes the footnote number to be displayed raw (not in superscript), and clicking on the number brings to the section, rather than to the footnote. For example, with the following heading:
! Buggy{FOOTNOTE()}For now{FOOTNOTE} heading
...the TOC entry would just display a raw "Buggy1 heading".

I believe it would be best to hide the number, as Microsoft Word 2013 does in TOC-s. Otherwise, it should be in superscript.

This bug (like #6703) is similar to its maketoc pseudo-equivalent: Tables of Contents (maketoc) can be broken when headings call plugins (such as ANAME and FOOTNOTE) .

Importance
2
Priority
10
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6705
Created
Friday 15 June, 2018 19:53:54 UTC
by Philippe Cloutier
LastModif
Friday 15 June, 2018 21:18:27 UTC


Show PHP error messages