Update README.md

这个提交包含在:
Jmnote 2020-10-19 04:49:36 +09:00 提交者 GitHub
父节点 a88ed92588
当前提交 4eb1c8f459
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 8 次插入8 次删除

查看文件

@ -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;
```