Fossil SCM

Automatically render a horizontal rule before the list of footnotes. If desired a particular skin can hide it using CSS selector "hr.footnotes-separator".

george 2022-02-04 19:24 markdown-footnotes
Commit 6807b434a9e85e08ce97d2c33250846fd1134a771093e06541d7fe6d198e070e
1 file changed +2 -1
--- src/markdown_html.c
+++ src/markdown_html.c
@@ -396,11 +396,12 @@
396396
}
397397
static void html_footnotes(
398398
struct Blob *ob, const struct Blob *items, void *opaque
399399
){
400400
if( items && blob_size(items) ){
401
- BLOB_APPEND_LITERAL(ob, "<ol class='footnotes'>\n");
401
+ BLOB_APPEND_LITERAL(ob,
402
+ "\n<hr class='footnotes-separator'/>\n<ol class='footnotes'>\n");
402403
BLOB_APPEND_BLOB(ob, items);
403404
BLOB_APPEND_LITERAL(ob, "</ol>\n");
404405
}
405406
}
406407
407408
--- src/markdown_html.c
+++ src/markdown_html.c
@@ -396,11 +396,12 @@
396 }
397 static void html_footnotes(
398 struct Blob *ob, const struct Blob *items, void *opaque
399 ){
400 if( items && blob_size(items) ){
401 BLOB_APPEND_LITERAL(ob, "<ol class='footnotes'>\n");
 
402 BLOB_APPEND_BLOB(ob, items);
403 BLOB_APPEND_LITERAL(ob, "</ol>\n");
404 }
405 }
406
407
--- src/markdown_html.c
+++ src/markdown_html.c
@@ -396,11 +396,12 @@
396 }
397 static void html_footnotes(
398 struct Blob *ob, const struct Blob *items, void *opaque
399 ){
400 if( items && blob_size(items) ){
401 BLOB_APPEND_LITERAL(ob,
402 "\n<hr class='footnotes-separator'/>\n<ol class='footnotes'>\n");
403 BLOB_APPEND_BLOB(ob, items);
404 BLOB_APPEND_LITERAL(ob, "</ol>\n");
405 }
406 }
407
408

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button