Edgewall Software
Modify

Opened 13 years ago

Last modified 7 years ago

#8499 new enhancement

Cannot obtain link to paragraph/section when reST used

Reported by: vic@… Owned by:
Priority: high Milestone: unscheduled
Component: wiki system Version: 0.11-stable
Severity: minor Keywords: restructuredtext rest paragraph header
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Hello. When writing wiki content with reST i noticed strange differences between HTML output which prevents from linking to specific paragraph. For heading "Jakis tytul" I get:

With reST:
<h1><a id="jakis-tytul" name="jakis-tytul">Jakis tytul</a></h1>
With Wiki markup:
<h1 id="Jakistytul">Jakis tytul</h1>

I don't know exactly how your JS works to find headings and add a icon next to them when mouse hovered to allow obtaing a link to paragraph, but it definitely fails here. I attach two pictures, on with "O.o" heading from reST hovered, one with "Jakis tytul" written with Wiki markup. Notice status bar address.

My setup:
  • Trac: 0.11
  • Python: 2.6.2 (r262, Jun 15 2009, 00:07:25) [GCC 4.1.1 (Gentoo 4.1.1-r3)]
  • setuptools: 0.6c9
  • psycopg2: 2.0.11
  • Genshi: 0.5.1
  • Pygments: 1.0
  • GIT: 1.6.0.6
  • jQuery: 1.2.3

Attachments (2)

trac_incorrect_heading.png (58.3 KB ) - added by vic@… 13 years ago.
trac_correct_heading.png (61.7 KB ) - added by vic@… 13 years ago.

Download all attachments as: .zip

Change History (7)

by vic@…, 13 years ago

Attachment: trac_incorrect_heading.png added

by vic@…, 13 years ago

Attachment: trac_correct_heading.png added

comment:1 by Christian Boos, 13 years ago

Milestone: 1.0
Severity: trivialminor
Type: defectenhancement

It's not supposed to work with reST. That could be an enhancement request though.

Slightly related, I've always wanted to have reST-style identifiers for Wiki section headings, that is replacing spaces with a '-' instead of squeezing them out.

That could be achieved while keeping backward compatibility with existing links using: <h1 id="jakis-tytul"><a id="jakis-tytul">Jakis tytul</a></h1> (as name is a deprecated attribute in XHTML 1.0).

comment:2 by Christian Boos, 12 years ago

Milestone: 1.0unscheduled

Milestone 1.0 deleted

comment:3 by Christian Boos, 12 years ago

Milestone: triagingnext-major-0.1X
Owner: set to Christian Boos
Priority: normalhigh

in reply to:  1 comment:4 by Christian Boos, 12 years ago

Milestone: next-major-0.1Xunscheduled

Replying to cboos:

It's not supposed to work with reST. That could be an enhancement request though.

Retargeting this ticket as such (PatchWelcome).

Slightly related, I've always wanted to have reST-style identifiers for Wiki section headings, that is replacing spaces with a '-' instead of squeezing them out.

That could be achieved while keeping backward compatibility with existing links using: <h1 id="jakis-tytul"><a id="jakis-tytul">Jakis tytul</a></h1> (as name is a deprecated attribute in XHTML 1.0).

This is actually #8645 now.

comment:5 by Ryan J Ollos, 7 years ago

Owner: Christian Boos removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.