Check-in [3a4c7f60a2]
Not logged in
Overview

SHA1 Hash:3a4c7f60a27f32db9bc7ee7ab5d3ab23a52e45d5
Date: 2009-09-19 15:14:12
User: drh
Edited Comment:Accept wiki hyperlinks of the form: [#label] Ticket ab82a0bd213b
Original Comment:Accept wiki hyperlinks of the form: [#label]</wiki> Ticket [ab82a0bd213b]
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/wikiformat.c from [fc0e3fb84e] to [b167238efb].

@@ -917,10 +917,25 @@
 ** close the markup.
 **
 ** Actually, this routine might or might not append the hyperlink, depending
 ** on current rendering rules: specifically does the current user have
 ** "History" permission.
+**
+**    [http://www.fossil-scm.org/]
+**    [https://www.fossil-scm.org/]
+**    [ftp://www.fossil-scm.org/]
+**    [mailto:fossil-users@lists.fossil-scm.org]
+**
+**    [/path]
+**
+**    [./relpath]
+**
+**    [WikiPageName]
+**
+**    [0123456789abcdef]
+**
+**    [#fragment]
 */
 static void openHyperlink(
   Renderer *p,            /* Rendering context */
   const char *zTarget,    /* Hyperlink traget; text within [...] */
   char *zClose,           /* Write hyperlink closing text here */
@@ -939,11 +954,11 @@
     if( 1 /* g.okHistory */ ){
       blob_appendf(p->pOut, "<a href=\"%s%h\">", g.zBaseURL, zTarget);
     }else{
       zTerm = "";
     }
-  }else if( zTarget[0]=='.' ){
+  }else if( zTarget[0]=='.' || zTarget[0]=='#' ){
     if( 1 /* g.okHistory */ ){
       blob_appendf(p->pOut, "<a href=\"%h\">", zTarget);
     }else{
       zTerm = "";
     }