Skip to content

[BUG]: Maven SVG markup looks invalid #2395

@josch87

Description

@josch87

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

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUse this label for pointing out bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions