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

#137 · open · 0 comments

View on GitHub ↗

abayken

I have following html: ### <ul> <li> Some item <strong>here</strong></li> </ul> I add style to <b>li</b> tag to give them bullet points: ``` let li = Style { $0.textTransforms = [ TextTransform.custom { return "• " + $0 } ] } ``` Because of <b> li </b> 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?

Comments