aboutsummaryrefslogtreecommitdiff
path: root/mammoth/writers
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-02-08 20:37:45 +0000
committerMichael Williamson <mike@zwobble.org>2015-02-08 20:37:45 +0000
commitd6494f9fe0d2265167295c4d813173945fd505cf (patch)
treef52e615c44956678a5897ec68d6cd9762711b44c /mammoth/writers
parent6a36ee5303addbf1ce5f95dfa5e4c0d419cf1d9d (diff)
Handle image elements with no alt text in markdown writer
Diffstat (limited to 'mammoth/writers')
-rw-r--r--mammoth/writers/markdown.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mammoth/writers/markdown.py b/mammoth/writers/markdown.py
index 4aa73d5..6db4ea9 100644
--- a/mammoth/writers/markdown.py
+++ b/mammoth/writers/markdown.py
@@ -36,7 +36,7 @@ def _hyperlink(attributes):
def _image(attributes):
src = attributes.get("src")
- alt_text = attributes.get("alt")
+ alt_text = attributes.get("alt", "")
return _WriterOutput("![{0}]({1})".format(alt_text, src), "")