Andy.N
Well-known member
Latex does not parse properly on Android phone. Quote shows the bbcode instead of the image.
The url path to mathtex.cgi is wrong. It should be domain.com/cgi-bin/mathtex.cgi
Ideally, this should be configurable by admin.
This is the function that generate Latex image

The url path to mathtex.cgi is wrong. It should be domain.com/cgi-bin/mathtex.cgi
Ideally, this should be configurable by admin.
This is the function that generate Latex image
Code:
public function handleTagTex(array $tag, array $rendererStates)
{
$tex = $this->stringifyTree($tag['children']);
$url = XenForo_Link::convertUriToAbsoluteUri("mathtex.cgi?tapatalk=1&formula={$tex}", true);
return "[img]{$url}[/img]";
}
