Support » Plugin: WP LaTeX » Size option of inline code not working

  • I tried to set a size for my Latex formula, but it did not work as expected:

    (#1) Not working: $latex e^{\i \pi}&s=4$
    (#2) Working: $latex e^{\i \pi}& amp;s=4$
    (without the space)

    I changed in wp-latex.php the regular expression so it includes
    the non-escape ampersand:

    wp-latex,php line 118:
    preg_match( '/.+((?:& #038;|& amp;|&)s=(-?[0-4])).*/i', ...<br />
    Now, both versions work.

    Do I miss an option that makes #1 work out of the box? If not,
    would you change the regular expression for the next WP Latex relase,
    please?

    Kind Regards
    Stefan

    https://wordpress.org/plugins/wp-latex/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Size option of inline code not working’ is closed to new replies.