Opened 20 years ago
Last modified 18 years ago
#847 closed defect
Add 'id' attribute to headings in the wiki — at Version 4
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | 0.9 |
Component: | wiki system | Version: | 0.8 |
Severity: | normal | Keywords: | |
Cc: | manuzhai@…, trac-form@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
By adding the 'id' attribute to the h* elements in the wiki, it would be possible to link to both a page and a specific section of the page.
e.g.
== Versions ==
…would become…
<h2 id="versions">Versions</h2>
… and could be linked to with [wiki:SomePage#versions]
.
It would also need to correct case/replace spaces with underscores in both the tag generation and link parsing.
Change History (4)
comment:1 by , 20 years ago
comment:2 by , 20 years ago
You're quite right - this should apply automatically to all hn elements.
comment:3 by , 19 years ago
Keywords: | id tag removed |
---|---|
Summary: | Add 'id' attribute to h2 elements in the wiki → Add 'id' attribute to headings in the wiki |
comment:4 by , 19 years ago
Description: | modified (diff) |
---|
Ticket #992 has been marked as duplicate of this ticket. It contains a couple of patches.
Why not add an id to any heading level?