Browse Source

Fix up bbcode latex rendering

spaghetti 8 years ago
parent
commit
1499620776
2 changed files with 5 additions and 1 deletions
  1. 1
    1
      classes/text.class.php
  2. 4
    0
      static/styles/beluga/style.css

+ 1
- 1
classes/text.class.php View File

@@ -749,7 +749,7 @@ class Text {
749 749
           $Str .= '<a href="wiki.php?action=article&amp;name='.urlencode($Block['Val']).'">'.$Block['Val'].'</a>';
750 750
           break;
751 751
         case 'tex':
752
-          $Str .= '<img style="vertical-align: middle;" src="'.STATIC_SERVER.'blank.gif" onload="if (this.src.substr(this.src.length - 9, this.src.length) == \'blank.gif\') { this.src = \''.ImageTools::process('https://chart.googleapis.com/chart?cht=tx&amp;chf=bg,s,FFFFFF00&amp;chl='.urlencode(mb_convert_encoding($Block['Val'], 'UTF-8', 'HTML-ENTITIES')).'&amp;chco=').'\' + hexify(getComputedStyle(this.parentNode, null).color) + \'.png\'; }" alt="'.$Block['Val'].'" />';
752
+          $Str .= '<img class="tex_img" style="vertical-align: middle;" src="'.STATIC_SERVER.'blank.gif" onload="if (this.src.substr(this.src.length - 9, this.src.length) == \'blank.gif\') { this.src = \''.ImageTools::process('https://chart.googleapis.com/chart?cht=tx&chf=bg,s,FFFFFF00&chl='.urlencode(mb_convert_encoding($Block['Val'], 'UTF-8', 'HTML-ENTITIES'))).'\'; }" alt="'.$Block['Val'].'" />';
753 753
           break;
754 754
         case 'plain':
755 755
           $Str .= $Block['Val'];

+ 4
- 0
static/styles/beluga/style.css View File

@@ -2065,6 +2065,10 @@ tbody .staff_post {
2065 2065
 	color: #e896e8 !important;
2066 2066
 }
2067 2067
 
2068
+.tex_img {
2069
+  filter: invert(100%);
2070
+}
2071
+
2068 2072
 /* Pink Additions */
2069 2073
 
2070 2074
 body.style_pink .cats_anime:after { color: #78467f; }

Loading…
Cancel
Save