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".
Commit
6807b434a9e85e08ce97d2c33250846fd1134a771093e06541d7fe6d198e070e
Parent
fe9e6ff9eb7e49d…
1 file changed
+2
-1
+2
-1
| --- src/markdown_html.c | ||
| +++ src/markdown_html.c | ||
| @@ -396,11 +396,12 @@ | ||
| 396 | 396 | } |
| 397 | 397 | static void html_footnotes( |
| 398 | 398 | struct Blob *ob, const struct Blob *items, void *opaque |
| 399 | 399 | ){ |
| 400 | 400 | 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"); | |
| 402 | 403 | BLOB_APPEND_BLOB(ob, items); |
| 403 | 404 | BLOB_APPEND_LITERAL(ob, "</ol>\n"); |
| 404 | 405 | } |
| 405 | 406 | } |
| 406 | 407 | |
| 407 | 408 |
| --- 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 |