My profile README broke (force newline after each <img>) #193030
Replies: 9 comments 4 replies
This comment was marked as low quality.
This comment was marked as low quality.
This comment was marked as low quality.
This comment was marked as low quality.
|
This usually isn’t your Markdown “randomly breaking” — it’s almost always related to how the images are being served and rendered. From what you described, the key clue is that icons from cdn.simpleicons.org are the ones breaking into new lines, while the ones hosted in your own repository still display correctly. What likely changed is how those external SVGs are being delivered or interpreted by GitHub’s Markdown renderer. If the CDN started serving SVGs with slightly different headers, dimensions, or inline styles (like display: block instead of inline), GitHub will render each image as a block element — which forces them onto separate lines. Why it worked before: Why it’s breaking now: How to fix it:
Using height (or width) is important — it keeps them visually aligned.
This helps enforce inline rendering. In short: nothing “broke” in your README directly — the external CDN behavior likely changed, and GitHub is now rendering those SVGs as block elements. Switching to HTML with explicit sizing/display or hosting icons locally will fix it reliably. |
|
The issue comes from how GitHub renders external SVG images (like those from In your README, you’re also using ✅ FixWrap each group of icons in an HTML container (like 🔧 Example (fixed Languages section)<p>
<a href="https://www.python.org/"><img src="https://cdn.simpleicons.org/python/3776AB" width="32" height="32" /></a>
<a href="https://en.wikipedia.org/wiki/C_%28programming_language%29"><img src="https://cdn.simpleicons.org/c/A8B9CC" width="32" height="32" /></a>
<a href="https://en.wikipedia.org/wiki/C%2B%2B"><img src="https://cdn.simpleicons.org/cplusplus/00599C" width="32" height="32" /></a>
<a href="https://en.wikipedia.org/wiki/JavaScript"><img src="https://cdn.simpleicons.org/javascript/F7DF1E" width="32" height="32" /></a>
<a href="https://nodejs.org/en"><img src="https://cdn.simpleicons.org/nodedotjs/5FA04E" width="32" height="32" /></a>
<a href="https://www.nasm.us/"><img src="icons/nasm.svg" width="32" height="32" /></a>
<a href="https://www.php.net/"><img src="https://cdn.simpleicons.org/php/777BB4" width="32" height="32" /></a>
<a href="https://en.wikipedia.org/wiki/C_Sharp_(programming_language)"><img src="https://upload.wikimedia.org/wikipedia/commons/b/bd/Logo_C_sharp.svg" width="32" height="32" /></a>
</p>🔁 Apply this to all sectionsDo the same for:
💡 Optional (better spacing)Instead of <img src="..." height="32" style="margin-right: 8px;">🧠 Summary
This keeps your current design but makes it stable against GitHub rendering changes. |
|
This isn’t a problem with your README — it’s due to a change in how GitHub renders images from cdn.simpleicons.org. GitHub proxies external images through its Camo service, and it seems SVGs from that CDN are now being treated as block elements (display: block). Because of that, each That’s why:
Summary: It worked earlier because those SVGs were rendered inline. Now GitHub treats them as block elements from that CDN, so switching the source or hosting locally is the only reliable fix. |
|
The icons are breaking into new lines because the SimpleIcons CDN changed how it serves SVGs, causing GitHub to treat them as 'blocks' rather than 'inline' text. 🛠 The FixWrap your icons in an HTML paragraph tag. This forces the browser to keep them together in one row. <p align="left">
<img src="https://cdn.simpleicons.org/python" width="30" />
<img src="https://cdn.simpleicons.org/javascript" width="30" />
<img src="https://cdn.simpleicons.org/react" width="30" />
</p>
💡 Why this happened ? :(
|
|
Anyone have some better suggestions. The only thing I have not tired so far are local links. Why is not not possible to just override this.. in the image tag? That seems like the easiest option. GitHub consider not clobbering this within the image tags. Happy to be told why this is a problem. |
|
Likely a GitHub rendera ing change affecting external SVGs from cdn.simpleicons.org. Try hosting the icons directly in your repo or using raw GitHub URLs, and set consistent width/height on the tags to keep them in one row. |


Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Profile
Body
When I created my GitHub profile README (click link to see), all icons were in a single row. Some time ago something happened and almost all icons began to display each from new line, and I have no idea why.
I noticed that most of broken images are loaded from cdn.simpleicons.org, and some of them which are loaded from my repository directly, not from simpleicons, are displayed correctly.
Can someone explain why they were displayed correctly earlier but now they're displayed incorrectly and how can I fix this?
All reactions