Merge pull request #38 from Appropedia/master

Mobile fix
这个提交包含在:
Jmnote 2022-07-09 20:25:30 +09:00 提交者 GitHub
当前提交 3757e9b1cf
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 2 个文件被更改,包括 4 次插入3 次删除

查看文件

@ -1,6 +1,6 @@
{
"name": "SimpleMathJax",
"version": "0.8.2",
"version": "0.8.3",
"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>",
@ -24,7 +24,8 @@
},
"ResourceModules": {
"ext.SimpleMathJax": {
"scripts": ["resources/ext.SimpleMathJax.js"]
"scripts": ["resources/ext.SimpleMathJax.js"],
"targets": ["desktop", "mobile"]
}
},
"ResourceFileModulePaths": {

查看文件

@ -1,4 +1,4 @@
mw.hook( 'wikipage.categories' ).add( function ( $content ) {
mw.hook( 'wikipage.content' ).add( function ( $content ) {
window.MathJax = {
tex: {
inlineMath: mw.config.get('wgSmjExtraInlineMath').concat([['[math]','[/math]']]),