Always linkify <img> tags, no matter the src
This commit is contained in:
parent
dbcfad1c50
commit
78663df09e
3
TODO.md
3
TODO.md
@ -18,9 +18,7 @@ OLD
|
||||
|
||||
- Bug fixes
|
||||
- 100% CPU usage when hitting top edge to trigger messages loading
|
||||
- Sending `![A picture](https://picsum.photos/256/256)` → not clickable?
|
||||
- `MessageDelegate.qml:63: TypeError: 'reloadPreviousItem' not a function`
|
||||
- RoomEventsList scrolling when resizing the window
|
||||
|
||||
- UI
|
||||
- Invite to room
|
||||
@ -70,6 +68,7 @@ OLD
|
||||
- See `Qt.callLater()` potential usages
|
||||
- Banner name color instead of bold
|
||||
- Animate RoomEventDelegate DayBreak apparition
|
||||
- Room subtitle: show things like "*Image*" instead of blank, etc
|
||||
|
||||
- Missing nio support
|
||||
- MatrixRoom invited members list
|
||||
|
@ -131,8 +131,7 @@ class HtmlFilter:
|
||||
width = el.attrib.get("width", "256")
|
||||
height = el.attrib.get("height", "256")
|
||||
|
||||
if el.getparent().tag == "a" or el.tag != "img" or \
|
||||
not self._is_image_path(link):
|
||||
if el.getparent().tag == "a" or el.tag != "img":
|
||||
return el
|
||||
|
||||
el.tag = "a"
|
||||
|
Loading…
Reference in New Issue
Block a user