Improve handling of lists with multiline items.

This commit is contained in:
Sergio Martínez Portela 2022-11-24 00:09:58 +01:00
parent 88029a27d0
commit 58bb7ccc49
2 changed files with 4 additions and 3 deletions

View file

@ -626,7 +626,7 @@ def render_connections(headline_id, content, graph):
if headline_id not in graph['backlinks']:
return
content.append("<ul><li class='connections'><span class='tag backlink-explanation'>Linked from</span><ul>")
content.append("<ul><li class='connections'><span class='tag backlink-explanation'>Linked from</span></li><ul>")
for backlink in sorted(graph['backlinks'][headline_id], key=lambda x: graph['nodes'][x]['title']):
link = graph["nodes"][backlink]
title = link["title"]