KaTeX is written in Latex format.
You write it inside forward-ticks, like this:
´\cfrac{a}{1 + \cfrac{1}{b}}´
Result is: ´\cfrac{a}{1 + \cfrac{1}{b}}´
Click here for more syntax docs.