diff options
Diffstat (limited to 'mammoth/images.py')
| -rw-r--r-- | mammoth/images.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mammoth/images.py b/mammoth/images.py index 713f739..3def424 100644 --- a/mammoth/images.py +++ b/mammoth/images.py @@ -1,9 +1,12 @@ +from . import html + + def inline(func): - def convert_image(image, html_generator): + def convert_image(image): attributes = func(image).copy() if image.alt_text: attributes["alt"] = image.alt_text - html_generator.self_closing("img", attributes) + return [html.self_closing_element("img", attributes)] return convert_image |
