devicon icon indicating copy to clipboard operation
devicon copied to clipboard

[BUG]: Maven SVG markup looks invalid

Open josch87 opened this issue 9 months ago • 0 comments

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 and pasting it into the Excalidraw whiteboard, it doesn't work for the "maven-original" and "maven-original-wordmark" icons.

Steps to Reproduce:

  1. Search for "maven" on the Devicon website 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.

Expected:

  • The icon should be successfully pasted onto the whiteboard.

Actual:

  • The following error message appears on the Excalidraw whiteboard: "Couldn't insert SVG image. The SVG markup looks invalid." Image

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

josch87 avatar Mar 27 '25 16:03 josch87