I originally wanted to make it clearer the distinction between "files" and e.g. `` ```tsx foo.tsx `` compared to `` ```sh Terminal `` or `` ```txt Project structure``. I originally started just trying to add a 📝 icon or something. But instead I ended showing file types of all markdown languages. I took the file type icons for the SVG's from https://github.com/vscode-icons/vscode-icons, which has a MIT license. I think the icons make it a even more clear what the language of the code snippet is. I have a follow-up PR for improving code block titles and making examples more consistent in #3163. ## Comparisons <details> <summary><strong>Open — Before | After</strong></summary> ### TS + Shell icons - Hover tooltips and alt text <img width="1504" height="639" alt="image" src="https://github.com/user-attachments/assets/636838a3-f38c-4048-a536-52c1cdd6b6d4" /> ### TS + Shell icons 2 <img width="1511" height="761" alt="image" src="https://github.com/user-attachments/assets/2ad6d25c-3995-433a-ad93-162830ca55a1" /> ### Shell + Dockerfile icons <img width="1500" height="780" alt="image" src="https://github.com/user-attachments/assets/88010749-d0d2-4498-9eb2-9bd971e48365" /> ### Nested blocks + Git icon <img width="1513" height="634" alt="image" src="https://github.com/user-attachments/assets/400c27f8-d0b4-40bd-801d-611e1e8a8e36" /> </details>
1 line
677 B
XML
1 line
677 B
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_git</title><path d="M29.472,14.753,17.247,2.528a1.8,1.8,0,0,0-2.55,0L12.158,5.067l3.22,3.22a2.141,2.141,0,0,1,2.712,2.73l3.1,3.1a2.143,2.143,0,1,1-1.285,1.21l-2.895-2.895v7.617a2.141,2.141,0,1,1-1.764-.062V12.3a2.146,2.146,0,0,1-1.165-2.814L10.911,6.314,2.528,14.7a1.8,1.8,0,0,0,0,2.551L14.753,29.472a1.8,1.8,0,0,0,2.55,0L29.472,17.3a1.8,1.8,0,0,0,0-2.551" style="fill:#dd4c35"/><path d="M12.158,5.067l3.22,3.22a2.141,2.141,0,0,1,2.712,2.73l3.1,3.1a2.143,2.143,0,1,1-1.285,1.21l-2.895-2.895v7.617a2.141,2.141,0,1,1-1.764-.062V12.3a2.146,2.146,0,0,1-1.165-2.814L10.911,6.314" style="fill:#fff"/></svg> |