aboutsummaryrefslogtreecommitdiff
path: root/haunt/jakob
diff options
context:
space:
mode:
Diffstat (limited to 'haunt/jakob')
-rw-r--r--haunt/jakob/utils.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/haunt/jakob/utils.scm b/haunt/jakob/utils.scm
index 20869be..a3ad1b7 100644
--- a/haunt/jakob/utils.scm
+++ b/haunt/jakob/utils.scm
@@ -63,8 +63,10 @@ is of an odd length and every second element is DELIM."
(result '()))
(match sxml
(() (remove-footnote-references (reverse result)))
- ((or (('p ...) _ ...) (paragraph _ ...))
- (remove-footnote-references (reverse (cons paragraph result))))
+ ((or (('p ...) tail ...) (paragraph tail ...))
+ (if (and (list? paragraph) (eqv? 'header (car paragraph)))
+ (loop tail result) ; Ignore front-matter.
+ (remove-footnote-references (reverse (cons paragraph result)))))
((head . tail)
(loop tail (cons head result))))))

© 2015 - 2026 Jakob L. Kreuze