blob: 713f7397ea7a9615f429b2bdd773a7627306a099 (
plain)
1
2
3
4
5
6
7
8
9
|
def inline(func):
def convert_image(image, html_generator):
attributes = func(image).copy()
if image.alt_text:
attributes["alt"] = image.alt_text
html_generator.self_closing("img", attributes)
return convert_image
|