I want to write a formular with MathJax where I use a font-awesome icon as a replacement for an mathematical symbol.
If I try something like
$$6 \cdot <i class="fa fa-home" aria-hidden="true"></i> + 5 \cdot <i class="fa fa-home" aria-hidden="true"></i>$$
I get
Is there an easy way to get font-awesome icons integrated in MathJax?
If you can ensure an HTML-based output, you can use MathJax's non-standard
\class{classname}{math}
macro as below.Note that this won't work in the SVG output (without additional hacks anyway).