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
- 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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 6705
- Created
- Friday 15 June, 2018 19:53:54 UTC
by Philippe Cloutier - LastModif
- Friday 15 June, 2018 21:18:27 UTC