Skip to content

<symbol> + <use>? #68

@mustafa0x

Description

@mustafa0x

Awesome project, thanks! I have an svg file with content like

<svg style="display: none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
  <defs>
    <symbol id="foo" viewBox="0 0 20 20"><path d="..."/></symbol>
    <symbol id="bar" viewBox="0 0 20 20"><path d="..."/></symbol>
  </defs>
</svg>

Then I would embed a specific symbol using <svg class="icon"><use href="icons.svg#foo"></svg>

Using this plugin, is there an easy way to achieve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions