Loading...
 
Skip to main content

Level 7+ headings (beyond h6)

Status
Open
Subject
Level 7+ headings (beyond h6)
Version
15.x
Category
  • Feature request
Feature
Wiki Syntax (text area, parser, external wiki, etc)
Resolution status
New
Submitted by
Philippe Cloutier
Lastmod by
Philippe Cloutier
Rating
(0)
Description

Tiki supports headers of various importance. A line starting with a single exclamation mark ("!") will generate the title for a main section, using HTML h1. A line starting with "!!!!!!" will generate the title for a level 6 section, using HTML h6.

Unfortunately, level 7 and above sections are not supported. This is because HTML only defines 6 levels of headings (h1 to h6). On one of my Tikis, at least one user would like to use level 7 sections. But 7 consecutive exclamation marks will be displayed literally (the parser ignores them).

Files
  1. Headings7
Solution
Unless HTML adds h7+ elements, I guess the best solution would be to use h6 elements for level 7+ sections and add a class (say "h7" for level 7) and CSS to format headings with these classes differently . The main difficulty is to determine how each level can be different while maintaining readability.
Workaround
Attachment #1 is a patch against Tiki 15's parserlib.php allowing an unlimited depth for headings, but with headings 7+ formatted the same as level 6 headings. This patch supports clicking level 7+ headings from the TOC.
Importance
2
Easy to solve?
4
Priority
8
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6395
Created
Friday 14 July, 2017 19:13:35 UTC
by Philippe Cloutier
LastModif
Saturday 06 July, 2024 10:21:44 UTC


Show PHP error messages