feat(Katex): implemenet renderToString method

Implement renderToString method on the Katex class and associated tests.

Closes #7