We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dfb478 commit 87c2190Copy full SHA for 87c2190
BbCode/Math.php
@@ -16,13 +16,17 @@ private static function loadMathjax(\XF\BbCode\Renderer\AbstractRenderer $render
16
public static function renderMathTag($tagChildren, $tagOption, $tag,
17
array $options, \XF\BbCode\Renderer\AbstractRenderer $renderer)
18
{
19
+ if (count($tagChildren) == 0)
20
+ return '';
21
self::loadMathjax($renderer);
22
return '$$\[' . $tagChildren[0] . '$$\]';
23
}
24
25
public static function renderInlineMathTag($tagChildren, $tagOption, $tag,
26
27
28
29
30
31
return '$$\(' . $tagChildren[0] . '$$\)';
32
0 commit comments