Changeset 883915
- Timestamp:
- 03/29/2014 02:08:20 AM (12 years ago)
- Location:
- latex/trunk
- Files:
-
- 2 edited
-
latex.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
latex/trunk/latex.php
r875765 r883915 4 4 Plugin URI: http://wordpress.org/extend/plugins/latex/ 5 5 Description: 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.4. 76 Version: 3.4.8 7 7 Author: zhiqiang 8 8 Author URI: http://zhiqiang.org … … 37 37 function latex_admin_page() { 38 38 if (function_exists('add_submenu_page')) { 39 add_submenu_page('options-general.php', 'LaTex administrator', 'LaTe x', 1, 'latex/latex-admin.php');39 add_submenu_page('options-general.php', 'LaTex administrator', 'LaTeX', 'manage_options', 'latex/latex-admin.php'); 40 40 } 41 41 } … … 45 45 function decode_entities_latex($text) { 46 46 $text= html_entity_decode($text,ENT_QUOTES,"ISO-8859-1"); #NOTE: UTF-8 does not work! 47 $text= preg_replace('/&#(\d+);/me',"chr(\\1)",$text); #decimal notation 48 $text= preg_replace('/&#x([a-f0-9]+);/mei',"chr(0x\\1)",$text); #hex notation 47 $text = preg_replace_callback( 48 '/&#(\d+);/m', 49 function($m) { 50 return chr(intval($m[1])); 51 }, 52 $text); # decimal notation 53 $text = preg_replace_callback( 54 '/&#x([a-f0-9]+);/mi', 55 function($m) { 56 return chr(intval("0x$m[1]")); 57 }, 58 $text); #hex notation 49 59 return $text; 50 60 } -
latex/trunk/readme.txt
r876150 r883915 12 12 13 13 verion logs: 14 15 ver 3.4.8 replace two obsolute functions. one is the regular express 'e' option which will not be supported by PHP. the second is 'user layer' is not support by WordPress. The patch is provided by XIA Rui. Thanks. 14 16 15 17 ver 3.4.7 make the space around inline formula to be optional. It's closed by default. But I recommend turn on it on Chinese blog.
Note: See TracChangeset
for help on using the changeset viewer.