Diff
Not logged in

Differences From:

File src/wikiformat.c part of check-in [f88e2e7a13] - If embedded wiki documentation begins with <title>...</title> then use the text within the markup as the title of the document. by drh on 2009-06-07 17:27:45. [view]

To:

File src/wikiformat.c part of check-in [3a4c7f60a2] - Accept wiki hyperlinks of the form: [#label] Ticket ab82a0bd213b by drh on 2009-09-19 15:14:12. [view]

@@ -918,8 +918,23 @@
 **
 ** 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 [...] */
@@ -940,9 +955,9 @@
       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 = "";