summaryrefslogtreecommitdiff
path: root/megapixels/app/site/parser.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-04-17 20:02:42 +0200
committerJules Laplace <julescarbon@gmail.com>2019-04-17 22:05:59 +0200
commit699d7a77b9d4120dfb75f271cb924b0e05a2fcaa (patch)
tree140c6c2cfea993de3b6ffabfa88bf21af264a6ae /megapixels/app/site/parser.py
parent70bb504bcc12c2ec57fef6c01d9cff677fb1bee3 (diff)
basic mobile css
Diffstat (limited to 'megapixels/app/site/parser.py')
-rw-r--r--megapixels/app/site/parser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/megapixels/app/site/parser.py b/megapixels/app/site/parser.py
index 1489d056..92d950f8 100644
--- a/megapixels/app/site/parser.py
+++ b/megapixels/app/site/parser.py
@@ -260,7 +260,8 @@ def format_footnotes(footnotes, s3_path):
continue
key, note = footnote.split(': ', 1)
footnote_index_lookup[key] = index
- footnote_list.append('<a name="{}" class="footnote_shim"></a><span class="backlinks">{}_BACKLINKS</span>'.format(key, key) + markdown(note))
+ note_markup = markdown(note).replace('<p>', '', 1).replace('</p>', '', 1)
+ footnote_list.append('{} <a name="{}" class="footnote_shim"></a><span class="backlinks">{}_BACKLINKS</span>'.format(index, key, key) + note_markup)
index += 1
footnote_txt = '<section><ul class="footnotes"><li>' + '</li><li>'.join(footnote_list) + '</li></ul></section>'