summaryrefslogtreecommitdiff
path: root/mammoth/images.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-04-02 16:55:59 +0100
committerMichael Williamson <mike@zwobble.org>2016-04-02 16:58:51 +0100
commitbc86f042f5bdcec4bab45508eab3617d0b370741 (patch)
treec723a67f20ef3cdae52d8a0b5cc66d92ac6f1fbd /mammoth/images.py
parent241f56dd56ccda41bcecf95fdc0e069c516ca760 (diff)
Rename images.inline to images.img_element
Diffstat (limited to 'mammoth/images.py')
-rw-r--r--mammoth/images.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mammoth/images.py b/mammoth/images.py
index 3def424..4dc095a 100644
--- a/mammoth/images.py
+++ b/mammoth/images.py
@@ -1,7 +1,7 @@
from . import html
-def inline(func):
+def img_element(func):
def convert_image(image):
attributes = func(image).copy()
if image.alt_text:
@@ -10,3 +10,6 @@ def inline(func):
return [html.self_closing_element("img", attributes)]
return convert_image
+
+# Undocumented, but retained for backwards-compatibility with 0.3.x
+inline = img_element