Hotwords and WikiWords are parsed to links in Table of Contents (maketoc) entries, breaking HTML
- Status
- Closed
- Subject
- Hotwords and WikiWords are parsed to links in Table of Contents (maketoc) entries, breaking HTML
- Version
- 15.x
1.8.x
18.x
1.9.x - Category
- Conflict of two features (each works well independently)
- Dogfood on a *.tiki.org site
- Feature
- Hotword
Wiki (page view, edit, history, rename, etc)
Wiki Syntax (text area, parser, external wiki, etc) - Resolution status
- Won't Fix
- Submitted by
- Bernhard Scholz
- Lastmod by
- Philippe Cloutier
- Rating
- Description
- When including a maketoc into a page, the titles in the page are still parsed for WikiWords and Hotwords. This breaks HTML, links, and may decrease the readability of page TOC-s.
- Solution
Hotwords and WikiWords should not be (distinct) links when they appear in a line of maketoc, the parser should just treat them as regular text.
To do so, the value of $line in parse_data_process_maketoc() could be copied before it is parsed calling parse_data_inline_syntax(). That unparsed copy could then be used instead of what $line has become when building $title_text_base to append to $anch, about 200 lines below. It would still need to be parsed to a lesser degree though. It seems calling parse_data_inline_syntax() with true as third argument would do the trick (even though that's claiming to be CKeditor).
- Importance
- 7
- Priority
- 35
- 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
- 638
- Created
- Saturday 29 April, 2006 14:20:23 UTC
by Unknown - LastModif
- Monday 11 October, 2021 11:44:22 UTC