diff --git a/textile/functions.py b/textile/functions.py index 7a953031..6410a8d1 100644 --- a/textile/functions.py +++ b/textile/functions.py @@ -1377,6 +1377,8 @@ def fImage(self, match): if size: out.append(' height="%s"' % size[1]) out.append(' src="%s"' % url) + if atts: + out.append(atts) if title: out.append(' title="%s"' % title) if size: diff --git a/textile/tests/__init__.py b/textile/tests/__init__.py index 42bcfd48..c14439f5 100644 --- a/textile/tests/__init__.py +++ b/textile/tests/__init__.py @@ -270,6 +270,8 @@ class TestKnownValues(): """\t

A definition list

\n\n\t
\n\t\t
Term 1
\n\t\t
Def 1
\n\t\t
Def 2
\n\t\t
Def 3\n\t
\n\t\t
Center
\n\t\t
NATO
\n\t\t
Subdef 1
\n\t\t
Subdef 2\n\t
\n\t\t
SubSub Term
\n\t\t
SubSub Def 1
\n\t\t
SubSub Def 2
\n\t\t
Subsub Def 3
\nWith newline
\n\t\t
Subsub Def 4
\n\t
\n\t\t
Subdef 3
\n\t
\n\t\t
DEF 4
\n\t\t
Term 2
\n\t\t
Another def
\n\t\t
And another
\n\t\t
One more\n\t
\n\t\t
A def without a term
\n\t\t
More defness
\n\t
\n\t\t
Third term for good measure
\n\t\t
My definition of a boombastic jazz
\n\t
"""), ("""###. Here's a comment.\n\nh3. Hello\n\n###. And\nanother\none.\n\nGoodbye.""", """\t

Hello

\n\n\t

Goodbye.

"""), ("""h2. A Definition list which covers the instance where a new definition list is created with a term without a definition\n\n- term :=\n- term2 := def""", """\t

A Definition list which covers the instance where a new definition list is created with a term without a definition

\n\n
\n\t
term2
\n\t
def
\n
"""), + ('!{height:20px;width:20px;}https://1.gravatar.com/avatar/!', + '\t

') )