diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-04-17 20:02:42 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-04-17 22:05:59 +0200 |
| commit | 699d7a77b9d4120dfb75f271cb924b0e05a2fcaa (patch) | |
| tree | 140c6c2cfea993de3b6ffabfa88bf21af264a6ae /megapixels/app | |
| parent | 70bb504bcc12c2ec57fef6c01d9cff677fb1bee3 (diff) | |
basic mobile css
Diffstat (limited to 'megapixels/app')
| -rw-r--r-- | megapixels/app/site/parser.py | 3 |
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>' |
