From bc86f042f5bdcec4bab45508eab3617d0b370741 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 2 Apr 2016 16:55:59 +0100 Subject: Rename images.inline to images.img_element --- mammoth/images.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mammoth/images.py') 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 -- cgit v1.2.3