Fossil

Diff
Login

Differences From Artifact [d9dadfd558]:

To Artifact [a216f2d384]:


538
539
540
541
542
543
544
545
546
547
548
549
550
551

552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
** interesting with them.  This isn't standard Markdown, so
** it's implementation-specific what occurs here.  More, each
** Fossil feature using Markdown is free to apply markup and
** behavior to these in feature-specific ways.
*/
static int html_tagspan(
  struct Blob *ob,        /* Write the output here */
  struct Blob *text,      /* The stuff in between the code span marks */
  enum mkd_tagspan type,  /* which type of tagspan we're creating */
  void *opaque
){
  if( text==0 ){
    /* no-op */
  }else{

    BLOB_APPEND_LITERAL(ob, "<span data-");
    switch (type) {
        case MKDT_ATREF: BLOB_APPEND_LITERAL(ob, "atref"); break;
        case MKDT_HASH:  BLOB_APPEND_LITERAL(ob, "hash");  break;
    }
    BLOB_APPEND_LITERAL(ob, "=\"");
    html_quote(ob, blob_buffer(text), blob_size(text));
    BLOB_APPEND_LITERAL(ob, "\"");
    blob_appendf(ob, ">%b</span>", text);
  }
  return 1;
}

static int html_triple_emphasis(
  struct Blob *ob,
  struct Blob *text,







|
|





>


|
|




|







538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
** interesting with them.  This isn't standard Markdown, so
** it's implementation-specific what occurs here.  More, each
** Fossil feature using Markdown is free to apply markup and
** behavior to these in feature-specific ways.
*/
static int html_tagspan(
  struct Blob *ob,        /* Write the output here */
  struct Blob *text,      /* The word after the tag character */
  enum mkd_tagspan type,  /* Which type of tagspan we're creating */
  void *opaque
){
  if( text==0 ){
    /* no-op */
  }else{
    char c;
    BLOB_APPEND_LITERAL(ob, "<span data-");
    switch (type) {
        case MKDT_ATREF: c='@'; BLOB_APPEND_LITERAL(ob, "atref"); break;
        case MKDT_HASH:  c='#'; BLOB_APPEND_LITERAL(ob, "hash");  break;
    }
    BLOB_APPEND_LITERAL(ob, "=\"");
    html_quote(ob, blob_buffer(text), blob_size(text));
    BLOB_APPEND_LITERAL(ob, "\"");
    blob_appendf(ob, ">%c%b</span>", c, text);
  }
  return 1;
}

static int html_triple_emphasis(
  struct Blob *ob,
  struct Blob *text,