◊(Local Yarn Code "Diff")

Differences From Artifact [0c6322fb]:

To Artifact [a895fb78]:


191
192
193
194
195
196
197
198
199


200
201
202
203
204
205
206
191
192
193
194
195
196
197


198
199
200
201
202
203
204
205
206







-
-
+
+







        [else tx]))

;; Footnotes
;;
;; Private use:
(define fn-names null)
(define fn-definitions (make-hash))
(define (fn-id x) (string-append x "_fn"))
(define (fndef-id x) (string-append x "_fndef"))
(define (fn-id x) (here-id (string-append x "_fn")))
(define (fndef-id x) (here-id (string-append x "_fndef")))

;; Provided footnote tag functions:
(define (html-fn . args)
  (define name (format "~a" (first args)))
  (set! fn-names (cons name fn-names))
  (let* ([def-anchorlink (string-append "#" (fndef-id name))]
         [nth-ref        (number->string (count (curry string=? name) fn-names))]