Skip to content

Conversation

@Mini-ghost
Copy link
Contributor

Enables SVG file icon display when using [file.svg] syntax in code blocks.

```html [vue.svg]
<svg xmlns="http://www.w3.org/2000/svg" width="37.07" height="36" viewBox="0 0 256 198">
  <path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path>
  <path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path>
</svg>
```

Before
截圖 2025-11-01 下午4 17 16

After
截圖 2025-11-01 下午4 21 48

@netlify
Copy link

netlify bot commented Nov 1, 2025

Deploy Preview for slidev ready!

Name Link
🔨 Latest commit 734fab1
🔍 Latest deploy log https://app.netlify.com/projects/slidev/deploys/6905c357f7294c0008690885
😎 Deploy Preview https://deploy-preview-2324--slidev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@antfu antfu merged commit e39857e into slidevjs:main Nov 5, 2025
4 checks passed
@Mini-ghost Mini-ghost deleted the feat/code-block-svg-icon branch November 5, 2025 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants