Feature #1647

No Anchor Support on Wiki pages

Added by ian dees over 9 years ago. Updated almost 9 years ago.

Status:ClosedStart date:2008-07-15
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Wiki
Target version:0.8
Resolution:Fixed

Description

I'd like to be able to use anchor links on a wiki page. For example, I'd like to be able to use the wiki pages for a Glossary type page, with A-Z links at the top, linking to sections below.

formating_fix.patch Magnifier - Formatting patch (18.7 KB) Tomas Pospisek, 2008-10-22 16:46

docu.patch Magnifier - Docu patch (1.05 KB) Tomas Pospisek, 2008-10-22 16:46

Associated revisions

Revision 1705
Added by Jean-Philippe Lang about 9 years ago

Adds Trac-Like anchors on wiki headings (#1647).

Revision 1706
Added by Jean-Philippe Lang about 9 years ago

Adds support for wiki links with anchor (#1647).

Revision 2015
Added by Jean-Philippe Lang almost 9 years ago

Documents Wiki page anchors (#1647).

History

#1 Updated by Chris Miller about 9 years ago

This looks more like a feature request than it does a defect.

In case you haven't noticed, wiki pages already have limited anchors in them. the h1., h2., and then h3. headings all create small anchors in the page. Unfortunately they're all numbered, and they don't have a fade-in paragraph symbol (like in the Trac wiki) to demonstrate that the anchors really do exist.

In Firefox, select a heading, right click and from the context menu choose View Selection Source. You should see the HTML code for that specific heading. You'll notice it's also an <a name="1" class="wiki-page"></a> right before the rest of the text for the header. You can use that to link to various locations on the page. I do not remember the wiki syntax to link to a section inside of a page, but if I remember correctly there is some to do just that.

#2 Updated by Jean-Philippe Lang about 9 years ago

  • Status changed from New to Closed
  • Target version set to 0.8
  • Affected version (unused) deleted (0.7.3)
  • Resolution set to Fixed
  • Affected version deleted (0.7.3)

r1705 adds Trac-like anchors on wiki pages (with text instead of a number). r1706 allows wiki links with anchor.

#3 Updated by Jean-Philippe Lang about 9 years ago

  • Tracker changed from Defect to Feature

#4 Updated by Tomas Pospisek about 9 years ago

  • Status changed from Closed to Reopened
  • Assignee set to Jean-Philippe Lang

I don't see documented anywhere, how one goes about using the implemented anchors. Therefore I am reopening this issue and am proposing to document the new feature in order for it to become usable by Joe User.

If you feel this is inapropriate or the feature is allready documented then please close this bug again and forgive my offense.

In the case of the feature allready being documented, then please paste the URL into the note field so that interested parties can find the docu.

Thanks,
*t

#5 Updated by Tomas Pospisek about 9 years ago

Attached a docu patch.

The path comes in two parts. The first fixes the most bizarre formatting of the html file:

  • replace all tabs by four spaces
  • fix bizarre indenting
  • replaces numeric codes by the respective ASCII characters, where apropriate
  • remove superfluous CodeRay css definitions

The second part on top of the previous patch documents the new anchors syntax.

Please let me know if you don't want the formatting patch and want the docu patch only.

#6 Updated by Jean-Philippe Lang almost 9 years ago

  • Status changed from Reopened to Closed

Patch applies in r2015. Thanks.

Also available in: Atom PDF