Norbert Unterberg wrote:
> Is there a wiki syntax for links relative within a single page?
>
> Example: When I have a wiki page "Test" with a section "Title 1", then
> I can link to the sections using the [wiki:Test#Title1] syntax. Is
> there a way to specify this link as a page-relative link, something
> like [wiki:#Title1 See section 1]? In html this is possible (something
> like <a href="http:#Title1"></a>, but is there a corresponding wiki
> syntax?
>
> The reason is that for some sectios in our wiki we have some kind of
> wiki header template and we would have the title section portable
> (copy/paste) between wiki pages.
>
Not so far, but I think that's something that is quite useful and that
we could easily add.
The syntax would be [#Title1 See section 1], as this would work
anywhere, not only on Wiki pages.
This change has no adverse effects, AFAICT.
-- Christian
Index: formatter.py
===================================================================
--- formatter.py (revision 3725)
+++ formatter.py (working copy)
@@ -172,7 +172,7 @@
SHREF_TARGET_MIDDLE = r"(?:\|(?=[^|\s])|[^|<>\s])"
SHREF_TARGET_LAST = r"[a-zA-Z0-9/=]" # we don't want "_"
- LHREF_RELATIVE_TARGET = r"[/.][^\s[\]]*"
+ LHREF_RELATIVE_TARGET = r"[/.#][^\s[\]]*"
XML_NAME = r"[\w:](?<!\d)[\w:.-]*?" # See
http://www.w3.org/TR/REC-xml/#id
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/trac-users
-~----------~----~----~----~------~----~------~--~---