Skip to content

How to not apply parent tag's style to child ones? Β #137

@abayken

Description

@abayken

I have following html:

    <li> Some item <strong>here</strong></li> 
    

    I add style to li tag to give them bullet points:

    let li = Style {
                $0.textTransforms = [
                    TextTransform.custom {
                        return "β€’ " + $0
                    }
                ]
            }
    

    Because of li is the parent for tags inside of it, that text transformation is also applying to strong tag. So my strong tag having a bullet point. How to avoid it?

    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