Quick fix srcsetů, hodně malé obrázky nenafoukneme víc, než je potřeba.
This commit is contained in:
parent
0e5735cba2
commit
2a0e90bb96
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ class HTMLGenerator(OutputGenerator):
|
|||
HTMLGenerator(fake_out, self.katexClient, self.imageProcessor).generate(e.content)
|
||||
attributes["alt"] = fake_out.getvalue()
|
||||
|
||||
if len(srcset) != 0:
|
||||
if len(srcset) > 1:
|
||||
attributes["src"] = srcset[-1][0]
|
||||
attributes["srcset"] = ", ".join([" ".join(src) for src in srcset])
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue