@@ -516,10 +516,9 @@ inlineToMs opts (Link _ txt (src, _)) = do
516516 doubleQuotes (text (escapeUri src)) <> text " -A " <>
517517 doubleQuotes (text "\\c") <> space <> text "\\") <> cr <>
518518 text " -- " <> doubleQuotes (nowrap contents) <> cr <> text "\\&"
519−inlineToMs opts (Image attr alternate (source, tit)) = do
520− let alt = if null alternate then [Str "image"] else alternate
521− linkPart <- inlineToMs opts (Link attr alt (source, tit))
522− return $ char '[' <> text "IMAGE: " <> linkPart <> char ']'
519+inlineToMs _ (Image _ alternate (_, _)) =
520+ return $ char '[' <> text "IMAGE: " <>
521+ text (escapeString (stringify alternate)) <> char ']'
523522inlineToMs _ (Note contents) = do
524523 modify $ \st -> st{ stNotes = contents : stNotes st }
525524 return $ text "\\**"