ugit @main -
refs -
log -
-
https://git.jolheiser.com/ugit.git
Signature
-----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY
oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5
AAAAQHrOO+eOicuNOjtiriamJAGzjwCnavhtT9Klqzxijc3Qk79dN7qHqi9/a9DGNCCTRU
RgSgJonuKLxrbntYaO0gc=
-----END SSH SIGNATURE-----
diff --git a/internal/html/markup/markdown.go b/internal/html/markup/markdown.go
index c2cb61fcb7076e6dd533a806a730d5b5c19feb90..0124fe9da61b77205d6eee6ce5a93c132ec9df89 100644
--- a/internal/html/markup/markdown.go
+++ b/internal/html/markup/markdown.go
@@ -112,6 +112,7 @@ switch v := n.(type) {
case *ast.Image:
link := v.Destination
if len(link) > 0 && !bytes.HasPrefix(link, []byte("http")) {
+ v.SetAttributeString("style", []byte("max-width:100%;"))
v.Destination = []byte(resolveLink(ctx.repo, ctx.ref, ctx.path, string(link)) + "?raw&pretty")
}