I am currently working on a ReactJS project and I have come across an issue. I would like for the diacritic of a Devanagiri letter to be displayed in a different color than the letter it is attached to.
For example: क + ी make की
I was wondering if there is a way to achieve this, where the क and ी have different colors in the combined letter की?
I have attempted the following method:
क<span style="color: blue;">ी</span>
While this works fine for individual letters, it does not work as expected when they are combined.