323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
|
}else{
html_escape(ob, blob_buffer(link), blob_size(link));
}
BLOB_APPEND_LITERAL(ob, "</a>");
return 1;
}
static int html_code_span(struct Blob *ob, struct Blob *text, void *opaque){
if( text ){
BLOB_APPEND_LITERAL(ob, "<code>");
html_escape(ob, blob_buffer(text), blob_size(text));
BLOB_APPEND_LITERAL(ob, "</code>");
}
return 1;
}
static int html_double_emphasis(
struct Blob *ob,
struct Blob *text,
|
|
>
>
>
>
>
|
|
|
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
|
}else{
html_escape(ob, blob_buffer(link), blob_size(link));
}
BLOB_APPEND_LITERAL(ob, "</a>");
return 1;
}
static int html_code_span(
struct Blob *ob,
struct Blob *text, /* The stuff in between the code span marks */
int nSep, /* Number of grave accents marks as delimiters */
void *opaque
){
if( text ){
blob_append(ob, nSep>=3 ? "<pre>" : "<code>", -1);
html_escape(ob, blob_buffer(text), blob_size(text));
blob_append(ob, nSep>=3 ? "</pre>" : "</code>", -1);
}
return 1;
}
static int html_double_emphasis(
struct Blob *ob,
struct Blob *text,
|