Przeglądaj źródła

Interlinks: patch to fix #920 (#925)

* fixes #920

* Interlinks: improves HTML img tag handling. Fixes #886 (again)
aquinzi 7 lat temu
rodzic
commit
0c74bd5e35
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      interlinks/interlinks.py

+ 1 - 1
interlinks/interlinks.py

@@ -53,7 +53,7 @@ def parse_links(instance):
 				if name in interlinks:
 					hi = url.replace(name+">",interlinks[name])
 					img['src'] = hi
-				content = content.replace(old_tag, str(link))
+				content = content.replace(old_tag.replace(">", ">").replace("/>",">"), str(img))
 
 		instance._content = content