Open amano-kenji opened 1 year ago
You can put images in README.md
and include it via extra-doc-files: README.md
.
Would that solve your issue?
Not exactly. I don't like showing README.md on hackage.
It's weird that local haddock and Hackage behave differently:
Package description on local haddock documentation can show images in extra-doc-files.
Package description on hackage can't show images in extra-doc-files.
I think the feature request here makes sense and is desirable.
To be clear, you can put images in descriptions. Cf. https://hackage.haskell.org/package/lens
The issue is that relative links don't point to where one would hope. I think a PR could be made that specifically changed the relative path for relative links in that portion...
Module documentations can show images in extra-doc-files field on local haddock documentation and hackage.
Package description on local haddock documentation can show images in extra-doc-files.
Package description on hackage can't show images in extra-doc-files.