Added image alignment shorthands

This commit is contained in:
Mark Qvist committed 2026-09-05 23:31:29 +02:00
1 parent 235658c375
commit 0cd8de0c2e
1 file changed
+4
+4
View File
@@ -242,6 +242,10 @@ def parse_image(line, state, url_delegate):
elif key == "h": height = value
elif key == "a": align = value
if align == "c": align = "center"
if align == "l": align = "left"
if align == "r": align = "right"
widget = None
if image_url:
try: path = url_delegate.resolve_image(image_url)