Skip to content

Backslash escape not detected  #54

Open
@shenghan97

Description

@shenghan97

I'm trying to use backtick inside of a template string, but it seems like the plug in is not correctly detecting the escaped backtick. Here's a sample of the code.

template: html`
    <div
      class="classname"
      :style="background-image: url(\`${cardImage ??
        imgPlaceholder}');background-size: cover; cursor: pointer;\`
    >
      <div class="classname">
        <span class="classname" style=""
          >{{ title }}</span
        >
      </div>
    </div>
  `,

Could this be a bug?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions