Added image alignment shorthands

This commit is contained in:
Mark Qvist 2026-09-05 23:31:29 +02:00
parent 235658c375
commit 0cd8de0c2e
No known key found for this signature in database

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)