Fossil

Diff
Login

Differences From Artifact [6c4a1f129a]:

To Artifact [1b1db6a384]:


551
552
553
554
555
556
557
558
559


560
561
562
563

564
565
566
567
568
569
570
571
572
573
574
551
552
553
554
555
556
557


558
559




560




561
562
563
564
565
566
567







-
-
+
+
-
-
-
-
+
-
-
-
-







  }else{
    char cPrefix = '!';
    BLOB_APPEND_LITERAL(ob, "<span data-");
    switch (type) {
      case MKDT_ATREF:
        cPrefix = '@'; BLOB_APPEND_LITERAL(ob, "atref"); break;
      case MKDT_HASHTAG:
        cPrefix = '#';
        if(fossil_isdigit(*blob_str(text))){
        cPrefix = '#'; BLOB_APPEND_LITERAL(ob, "hashtag"); break;
      case MKDT_NUMTAG:
          /* This is a #NNN or #NNN.NNN reference. Mark it differently
             because these will be handled differently by higher-level
             code than conventional hashtags will. */
          BLOB_APPEND_LITERAL(ob, "numtag");
        cPrefix = '#'; BLOB_APPEND_LITERAL(ob, "numtag"); break;
        }else{
          BLOB_APPEND_LITERAL(ob, "hashtag");
        }
        break;
    }
    BLOB_APPEND_LITERAL(ob, "=\"");
    html_quote(ob, blob_buffer(text), blob_size(text));
    BLOB_APPEND_LITERAL(ob, "\"");
    blob_appendf(ob, ">%c%b</span>", cPrefix,text);
  }
  return 1;