Skip to content

[Bug] imgs lack vertical padding/margin. #2005

Closed

Description

@beedell-roke

A workaround is to encapsulate <img>s with <p> pairs, like <p></p><img><p></p>.

Affected

Details

  1. files-community/Files/issues/17799#issue-3553987309

  2. ActivityWatch/aw-qt/issues/113#issue-3313537135

  3. go-vikunja/vikunja/issues/1725#issue-3562259665

  4. element-hq/element-x-android/issues/5623#issue-3562986558

  5. tasks/tasks/issues/3952#issue-3562709063

  6. issues/1851#issue-2447254258

  7. devhyper/open-video-editor/pull/120#issue-3750915204

  8. binwiederhier/ntfy/issues/580#issuecomment-3690126163

  9. abrt/abrt/issues/1649#issuecomment-3716766044

  10. languagetool-org/languagetool/commit/9ae65010f0c4b067d102ad24a451fcaa6dffea93#commitcomment-174016121

  11. element-hq/element-web/issues/24082#issue-1506702346

  12. webcompat/web-bugs/issues/199619#issue-3798405115

  13. prateekmedia/appimagepool/issues/116#issuecomment-3735086272

  14. polkit-org/polkit/issues/634#issue-3817326275

  15. luisbocanegra/plasma-smart-video-wallpaper-reborn/issues/129#issuecomment-3760879416

  16. marin-m/SongRec/issues/151#issuecomment-3765627488

  17. canonical/ubuntu.com/issues/15921#issuecomment-3783904838

  18. canonical/ubuntu.com/issues/14859#issuecomment-3784475313

  19. languagetool-org/languagetool/issues/11733#issue-3760779609

  20. languagetool-org/languagetool/issues/11796#issue-3849360942

  21. orgs/community/discussions/162311#discussioncomment-15667344

  22. flameshot-org/flameshot/issues/334#issuecomment-3524260709

  23. PowerShell/PowerShell/issues/26832#issue-3944723610

  24. cypherstack/stack_wallet/issues/955#issuecomment-3958514612

  25. VaibhavLakhera/minimo-launcher/issues/69#issuecomment-3966670040

  26. quickemu-project/quickemu/issues/1902#issue-4244237317

  27. quickemu-project/quickemu/issues/1903#issue-4244319455

1

Footnotes

  1. issues/1811 ↩

Activity

  1. added a commit that references this issue on Feb 20, 2026
  2. added a commit that references this issue on Mar 14, 2026
  3. zkoppert commented on Apr 24, 2026

    @zkoppert
    Member

    Thanks for reporting this.

    After investigating, this issue is about vertical padding and margins on images, which is handled by GitHub.com's frontend CSS — not by this repository.

    This repo (github/markup) only handles step 1 of the rendering pipeline: converting markup formats (RST, AsciiDoc, MediaWiki, etc.) to raw HTML. Check out this part of the README for a fuller picture:

    Please note that only the first step is covered by this gem — the rest happens on GitHub.com's backend.

    CSS styling, padding, margins, and image sizing are all applied downstream by GitHub.com's frontend. This repo has no control over those.

    For CSS/styling feedback, GitHub's feedback discussions would be the right place to raise this.

    Closing as out of scope for this repository.

  4. beedell-roke commented on Apr 24, 2026

    @beedell-roke
    Author

    I have re-submitted this at orgs/community/discussions/193792. @zkoppert, please re-close as invalid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions