瀏覽代碼

Interlinks: patch to fix #920 (#925)

* fixes #920

* Interlinks: improves HTML img tag handling. Fixes #886 (again)
aquinzi 7 年之前
父節點
當前提交
0c74bd5e35
共有 1 個文件被更改,包括 1 次插入1 次删除
  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