Skip to content

[Bug] Multiple Img tags inside a p tag no longer in same line #2045

Description

@BarnoTD

Noticed this when checking my profile readme.md, used to stack the icons of technologies used in one line and it wraps, now each icon img tag is on a single line.

Example code:

<p align="center">
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/xcode/xcode-original.svg" alt="xcode" width="45" height="45"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/swift/swift-original.svg" alt="swift" width="45" height="45"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/sqlite/sqlite-original.svg" alt="sqlite" width="45" height="45"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/firebase/firebase-original.svg" alt="firebase" width="45" height="45"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/googlecloud/googlecloud-original.svg" alt="google cloud" width="45" height="45"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/typescript/typescript-original.svg" alt="typescript" width="45" height="45"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/react/react-original.svg" alt="reactJS" width="45" height="45"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/nextjs/nextjs-original.svg" alt="nextJS" width="45" height="45"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/php/php-original.svg" alt="php" width="45" height="45"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/postman/postman-original.svg" alt="postman" width="45" height="45"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/java/java-original.svg" alt="java" width="45" height="45"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/python/python-original.svg" alt="python" width="45" height="45"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/figma/figma-original.svg" alt="figma" width="45" height="45"/>
</p>

Expected Visual Result (old Preview on github, still works in vscode .md preview)

Image

Actual Result

xcode swift sqlite firebase google cloud typescript reactJS nextJS php postman java python figma

Activity

  1. BarnoTD commented on Apr 17, 2026

    @BarnoTD
    Author

    I found a workaround, but would still want an explanation:
    Original images are huge so I hardcoded their height and width. when I only set the height or width it works. see:

    Code:

    <p>
    <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/xcode/xcode-original.svg" alt="xcode" height="45"/>
    <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/swift/swift-original.svg" alt="swift" height="45"/>
    <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/sqlite/sqlite-original.svg" alt="sqlite"  height="45"/>
    </p>

    Result:

    xcode swift sqlite

    When you set width and height, inline images no longer work:

    Code:

    <p align="center"> 
    <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/xcode/xcode-original.svg" alt="xcode" width="45" height="45"/> 
    <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/swift/swift-original.svg" alt="swift" width="45" height="45"/> 
    <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/sqlite/sqlite-original.svg" alt="sqlite" width="45" height="45"/>
    </p>

    Result:

    xcode swift sqlite

    Note: this issue wasn't present until recently.

  2. xpall commented on Apr 21, 2026

    @xpall

    I had this problem too and also used a work-around similar to yours.

  3. BraianS commented on May 24, 2026

    @BraianS

    Hello, Any news on this? Thank you

  4. github-actions commented on Jul 24, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  5. xpall commented on Jul 29, 2026

    @xpall

    I found a workaround, but would still want an explanation: Original images are huge so I hardcoded their height and width. when I only set the height or width it works. see:

    Code:

    xcode swift sqlite

    Result:

    xcode swift sqlite

    When you set width and height, inline images no longer work:

    Code:

    xcode swift sqlite

    Result:

    xcode swift sqlite

    Note: this issue wasn't present until recently.

    The workaround no longer works. Check your github profile in incognito, the issue returned

  6. github-actions commented on Sep 28, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions