自定义 Latex 包

WIthout looking deeply into your exact issue Discourse Math Plugin may not be exactly what you want, but it’s the supported solution.