I'm using the code below to create an image of a html string.
```
string htmlString = "<html><body><p style='font: 11pt Arial'>" + strAbstract + "</p></body>";
Image image = HtmlRender.RenderToImage(htmlString, new Size(700, 700));
Bitmap m_Bitmap = new Bitmap(image);
m_Bitmap.Save(abstractHtmlPath + @"\Abstract.png", ImageFormat.Png);
```
strAbstract is a string that contains html tags.
It works, but what I found it that when the string contains <sub> and <sup> html tags it gets mixed up between the two and then renders the image incorrectly. It uses the first occurrence of the html tag for each html tag.
For example, if the first html tag is <sup>x</sup> then it uses <sup> for every tag even if it is <sub>
I have attached the html and the image as an example.
Please advise.
Comments: I was testing this with your demo application and the problem seems to be that the <sub> tags are being replaced with <sup> tags and not the other way around.