Plugin Directory

Changeset 402011


Ignore:
Timestamp:
06/28/2011 08:13:43 AM (15 years ago)
Author:
mathzqy
Message:

fix a bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • latex/trunk/latex.php

    r365353 r402011  
    44Plugin URI: http://wordpress.org/extend/plugins/latex/
    55Description: Using MathJax and LaTex image service, this plugin provides a general solution to add and display your mathematical fourmula, no matter the visitors are visiting your blog or read from Google Reader.
    6 Version: 3.04
     6Version: 3.1
    77Author: zhiqiang
    88Author URI: http://zhiqiang.org
     
    157157       
    158158        // returning the image-tag, referring to the image in your cache folder
    159         if($imgtext) return "<p style='text-align:center;'><span class='MathJax_Preview'><img src='$cache_formula_url' style='".get_option('latex_imgcss')."' class='tex' alt=\"".($formula_text)."\" /></span>".(get_option("mathjax_server") != ""?"<script type='math/tex' mode='display'>".($formula_text)."</script>":"")."</p>";
     159        if($imgtext) return "<p style='text-align:center;'><span class='MathJax_Preview'><img src='$cache_formula_url' style='".get_option('latex_imgcss')."' class='tex' alt=\"".($formula_text)."\" /></span>".(get_option("mathjax_server") != ""?"<script type='math/tex;  mode=display'>".($formula_text)."</script>":"")."</p>";
    160160        else return "<span class='MathJax_Preview'><img src='$cache_formula_url' style='".get_option('latex_imgcss')." $padding' class='tex' alt=\"".($formula_text)."\" /></span>".(get_option("mathjax_server") != ""?"<script type='math/tex'>".($formula_text)."</script>":"");
    161161    }
Note: See TracChangeset for help on using the changeset viewer.