We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 459d462 commit 59eb60fCopy full SHA for 59eb60f
packages/markitdown/src/markitdown/converters/_markdownify.py
@@ -95,6 +95,8 @@ def convert_img(
95
src = el.attrs.get("src", None) or el.attrs.get("data-src", None) or ""
96
title = el.attrs.get("title", None) or ""
97
title_part = ' "%s"' % title.replace('"', r"\"") if title else ""
98
+ # Remove all line breaks from alt
99
+ alt = alt.replace("\n", " ")
100
if (
101
convert_as_inline
102
and el.parent.name not in self.options["keep_inline_images_in"]
0 commit comments