Merge branch 'master' of https://github.com/jmnote/SimpleMathJax
这个提交包含在:
当前提交
5491d692c9
16
README.md
16
README.md
|
@ -23,7 +23,7 @@ wfLoadExtension( 'SimpleMathJax' );
|
|||
# Optional Settings
|
||||
| Setting name | Default value | Description |
|
||||
| ----------------------- | ------------- | -------------------------------- |
|
||||
| `$wgSmjUseCDN` | true | use CDN or local scripts |
|
||||
| `$wgSmjUseCdn` | true | use CDN or local scripts |
|
||||
| `$wgSmjUseChem` | true | enable chem tag |
|
||||
| `$wgSmjEnableMenu` | true | MathJax.options.enableMenu |
|
||||
| `$wgSmjDisplayMath` | [] | MathJax.tex.displayMath |
|
||||
|
@ -33,23 +33,23 @@ wfLoadExtension( 'SimpleMathJax' );
|
|||
If you want to change font size, set `$wgSmjSize`.
|
||||
```PHP
|
||||
wfLoadExtension( 'SimpleMathJax' );
|
||||
$wgSmjSize = 150;
|
||||
$wgSmjScale = 1.5;
|
||||
```
|
||||
|
||||
If you want to use local module, set `$wgSmjUseCDN`.
|
||||
If you want to use local module, set `$wgSmjUseCdn`.
|
||||
```PHP
|
||||
wfLoadExtension( 'SimpleMathJax' );
|
||||
$wgSmjUseCDN = false;
|
||||
$wgSmjUseCdn = false;
|
||||
```
|
||||
|
||||
If you want to enable some additional inlineMath symbol pairs, set `$wgSmjInlineMath`.
|
||||
If you want to enable some extra inlineMath symbol pairs, set `$wgSmjExtraInlineMath`.
|
||||
```PHP
|
||||
wfLoadExtension( 'SimpleMathJax' );
|
||||
$wgSmjInlineMath = [["$","$"],["\\(","\\)"]];
|
||||
$wgSmjExtraInlineMath = [["$","$"],["\\(","\\)"]];
|
||||
```
|
||||
|
||||
If you want to enable MathJax context menu, set `$wgSmjShowMathMenu`.
|
||||
If you want to disable MathJax context menu, set `$wgSmjShowMathMenu`.
|
||||
```PHP
|
||||
wfLoadExtension( 'SimpleMathJax' );
|
||||
$wgSmjShowMathMenu = true;
|
||||
$wgSmjEnableMenu = false;
|
||||
```
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "SimpleMathJax",
|
||||
"version": "0.7.5",
|
||||
"version": "0.8.0",
|
||||
"author": "jmnote",
|
||||
"url": "https://www.mediawiki.org/wiki/Extension:SimpleMathJax",
|
||||
"description": "render TeX between <code><nowiki><math></nowiki></code> and <code><nowiki></math></nowiki></code>",
|
||||
|
|
正在加载...
在新工单中引用