Skip to content

Single quotes don’t work when individual characters are wrapped in span tags #54

@simonhrogers

Description

@simonhrogers

Hello! Firstly thank you so much for this package. It’s a thing of beauty and I’ve enjoyed tailoring it from project to project over the last couple years.

I’ve noticed it gets confused around tags, I don’t actually know if there is a workaround for this or not.

But with the following example, the correct quotes are incorrectly ‘corrected’ so that the front quote-mark also faces backwards.

  <span class="word">
    <span class="letter">‘</span>
    <span class="letter">Q</span>
    <span class="letter">u</span>
    <span class="letter">i</span>
    <span class="letter">c</span>
    <span class="letter">k</span>
  </span>
  <span class="word">
    <span class="letter">E</span>
    <span class="letter">x</span>
    <span class="letter">a</span>
    <span class="letter">m</span>
    <span class="letter">p</span>
    <span class="letter">l</span>
    <span class="letter">e</span>
    <span class="letter">’</span>
  </span>

Writing this up I can definitely see why it might seem unreasonable to even think this would be covered in the first place... but it begs the question whether there should be a tag / class that could be added to elements to have them ignored?

I can see this "ignore" suggestion was made previously, but rendered needless for that individual by a different bugfix.

And incase you’re at all curious as to why I’d want to do such a horrible thing with all those spans... the answer lies here:
https://www.brightnotionmusic.com/

Thanks again for all your work on this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions