diff options
| author | adamhrv <adam@ahprojects.com> | 2019-04-17 22:48:10 +0200 |
|---|---|---|
| committer | adamhrv <adam@ahprojects.com> | 2019-04-17 22:48:10 +0200 |
| commit | 651eeafb41bd7ad2f327bbfda2887032b90b71e9 (patch) | |
| tree | 016e7777d03bb9490a3af0d04bf55c829d84e449 /megapixels | |
| parent | 2813b772c8a088307f7a1ab9df167875d320162d (diff) | |
| parent | fba670e97b1baee6739aacf55325ce8dfd835be5 (diff) | |
merge css.css
Diffstat (limited to 'megapixels')
| -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>' |
