devicons / devicons/devicon

[BUG]: Maven SVG markup looks invalid

Open
#2,395 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
CSS
Stars
11.8k
Forks
2.4k
Avg merge
5d 9h
Merged PRs (30d)
4

Description

### I have searched through the issues and didn't find my problem.

- [x] Confirm

### Bug description

## Issue:
When using the "Using Pure SVG" button to copy an icon from the [Devicon website](https://devicon.dev/) and pasting it into the [Excalidraw whiteboard](https://excalidraw.com/), it doesn't work for the "maven-original" and "maven-original-wordmark" icons.

## Steps to Reproduce:
1. Search for "maven" on the [Devicon website](https://devicon.dev/) and select the Maven icon.
2. Select SVG versions "maven-original" or "maven-original-wordmark".
3. Copy "Using Pure SVG".
4. Paste the copied SVG onto the [Excalidraw whiteboard](https://excalidraw.com/).

## Expected:
- The icon should be successfully pasted onto the whiteboard.

## Actual:
- The following error message appears on the [Excalidraw whiteboard](https://excalidraw.com/): "Couldn't insert SVG image. The SVG markup looks invalid."
![Image](https://github.com/user-attachments/assets/0c7c7a79-b55f-41df-b731-1ed127ba470f)

### Possible fixes or solutions

- It's unclear whether the issue lies with the specific icon or if the icon is simply too advanced for Excalidraw to handle when pasted directly as a pure SVG.
- Try using a more simplified version of the SVG, or manually clean the SVG code to remove unnecessary attributes or metadata that could be causing the issue.
- As a workaround, you can download the SVG from the CDN and then upload it to Excalidraw without any issues.

### Additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.