card hair used with toon edges question

Hi, I am trying to use card hair on my toon character, but when I put edges on it dosnt work out. The edges can be seen through the hair, I am guessing this is because the material is transparent, so how do I make the hair texture block the edges. I hope this makes sense.

I think there is a way to do it with nodes, but I am not sure.