Opened 15 years ago
Last modified 10 years ago
#8499 new enhancement
Cannot obtain link to paragraph/section when reST used
Reported by: | 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)
Change History (7)
by , 15 years ago
Attachment: | trac_incorrect_heading.png added |
---|
by , 15 years ago
Attachment: | trac_correct_heading.png added |
---|
follow-up: 4 comment:1 by , 15 years ago
Milestone: | → 1.0 |
---|---|
Severity: | trivial → minor |
Type: | defect → enhancement |
comment:3 by , 15 years ago
Milestone: | triaging → next-major-0.1X |
---|---|
Owner: | set to |
Priority: | normal → high |
comment:4 by , 15 years ago
Milestone: | next-major-0.1X → unscheduled |
---|
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>
(asname
is a deprecated attribute in XHTML 1.0).
This is actually #8645 now.
comment:5 by , 10 years ago
Owner: | removed |
---|
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>
(asname
is a deprecated attribute in XHTML 1.0).