I am looking at a function that someone has written. The goal of the function to read html tags and format html tags appropriately for a pdf via MigraDoc
.
This is the definition of the function.
private Boolean RecursiveFormattedParagraph(Document d, Paragraph para, HtmlNode currentNode, ListInfo listinfo, Boolean listFlag, TextFormat currentFormat) {
It is working for the tags that the program currently supports (i.e. <b>, <i>
).
How can I add support for subscript
and superscript
? I have done some research and FormattedText
seems to be the appropriate method here. But as a novice C# developer, I am not quite sure how to integrated it into the program.