From 4e4823764788f5e5d6a6d5627ac5d56e82b0958e Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sun, 24 Apr 2022 12:35:07 -0700 Subject: [PATCH] Prepare for goldmark v1.4.12 Goldmark v1.4.12 switched footnotes to a div. Make them a
again, since I do insert a heading. --- assets/css/main.css | 4 +++- layouts/partials/processed-content.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 0491311..733b53b 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -49,7 +49,9 @@ blockquote { padding-left: 0.8em; } -/* narrow screens: reduce list indentation */ +/* narrow screens: reduce list indentation + * touch screens: lists of links should be + * easy to tap so give them some spacing. */ dd, ol, ul { diff --git a/layouts/partials/processed-content.html b/layouts/partials/processed-content.html index 43d39f8..59cfe64 100644 --- a/layouts/partials/processed-content.html +++ b/layouts/partials/processed-content.html @@ -4,7 +4,7 @@ {{end}} -{{ $referencesWithoutHeading := `(
+{{ $referencesWithoutHeading := `(<(section|div) class="footnotes" role="doc-endnotes">
)` -}} {{ $referencesWithHeading := printf `

%s

` ($footnote_heading) -}}