Describe and reproduce:
f^{*}'KaTeX parse error: Double superscript at position 6: f^{*}'ฬฒ
Expected behavior:
Clear rendering since there is not double superscript.
Screenshots:

Environment (please complete the following information):
In the meantime, this may solve it for you:

Thanks a lot. โค
In (La)TeX, ' is treated as a superscript. For technical reasons, f'^* works fine but f^*' generates the double subscript error. This is how it is in (La)TeX, so this is how it is in KaTeX. In other words, KaTeX is correctly reproducing (La)TeX behavior.
In addition to @mbourne's workaround, you can use f^{* \prime}. ' is equivalent to ^{\prime} which maybe helps explain why it's viewed as a superscript.