-
Notifications
You must be signed in to change notification settings - Fork 0
/
extension.json
164 lines (164 loc) · 6.47 KB
/
extension.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
"manifest_version": 2,
"name": "MathJax",
"author": [
"Alexander Mashin",
"based on a work by Mithgol the Webmaster"
],
"type": "parserhook",
"version": "3.0",
"descriptionmsg": "mathjax-desc",
"url": "https://traditio.wiki/MathJax_for_MediaWiki",
"requires": {
"MediaWiki": ">= 1.33",
"platform": {
"php": ">= 7.4"
}
},
"MessagesDirs": {
"MathJax": [
"i18n"
]
},
"AutoloadNamespaces": {
"MediaWiki\\Extensions\\MathJax\\": "src/",
"MediaWiki\\Extensions\\MathJax\\Engines\\": "src/engines/"
},
"Hooks": {
"ParserFirstCallInit": "MathJaxHooks",
"ParserBeforeInternalParse": "MathJaxHooks",
"InternalParseBeforeLinks": "MathJaxHooks",
"BeforePageDisplay": "MathJaxHooks",
"ScribuntoExternalLibraryPaths": "MediaWiki\\Extensions\\MathJax\\MathJax::registerLua",
"SoftwareInfo": "MathJaxHooks"
},
"HookHandlers": {
"MathJaxHooks": {
"class": "MediaWiki\\Extensions\\MathJax\\MathJax"
}
},
"config_prefix": "wgmj",
"config": {
"PoweredByIconURI": {
"value": "https://www.mathjax.org/badge/badge.gif",
"description": "URI of Powered by MathJax badge. Set to false or local in Dark Web"
},
"MathTag": {
"value": "math",
"description": "The wiki tag to hold the TeX formulæ."
},
"ChemTag": {
"value": "chem",
"description": "The wiki tag to hold the TeX chemical formulæ."
},
"MMLTag": {
"value": "math",
"description": "The wiki tag to hold the MathML formulæ."
},
"MMLnamespaces": {
"value": [ "http://www.w3.org/1998/Math/MathML" ],
"description": "The XML namespace for MathML formulæ."
},
"ClientSide": {
"value": true,
"description" : "Whether MathJax JavaScript should be attached to wiki pages with formulæ"
},
"UseCDN": {
"value": true,
"description": "Whether client-side MathJax should be downloaded from MathJax CDN. Only relevant with $wgmjClientSide. Set to false in Dark Web."
},
"CDNDistribution": {
"value": "https://cdn.jsdelivr.net/npm/mathjax@3/es5",
"description": "The URL of the CDN distribution of MathJax, without the actual file. Only relevant with $wgmjClientSide = true and $wgmjUseCDN = true."
},
"LocalDistribution": {
"value": "/MathJax/node_modules/mathjax-full/es5",
"description": "URL of the local MathJax distribution relative to $wgExtensionAssetsPath. Only relevant with $wgmjClientSide = true and $wgmjUseCDN = false."
},
"ServerSide": {
"value": true,
"description": "Whether TeX formulæ should be converted from TeX to MML server-side."
},
"ServiceUrl": {
"value": false,
"description": "URL of the remote or containerised MathJax service."
},
"ServiceExternalUrl": {
"value": "/js/mathjax",
"description": "Relative URL of the remote or containerised MathJax service as served by the frontend."
},
"ServiceVersionUrl": {
"value": "http://mathjax/cgi-bin/version.sh",
"description": "URL that serves remote MathJax version"
},
"MathJax": {
"value": {
"loader": {
"load": [ "ui/safe", "input/tex-full" ]
},
"options": {
"skipHtmlTags": [
"script",
"noscript",
"style",
"textarea",
"pre",
"code",
"annotation",
"annotation-xml",
"tt",
"nowiki",
"kbd",
"syntaxhighlight",
"plantuml"
],
"ignoreHtmlClass": [
"tex2jax_ignore",
"diff"
],
"menuOptions": {
"settings": {
"zoom": "DoubleClick",
"semantics": true
},
"annotationTypes": {
"TeX": ["application/x-tex"],
"OpenMath": ["OpenMath"]
}
}
},
"tex": {
"packages": [ "base", "autoload", "ams", "newcommand", "require", "configmacros" ],
"inlineMath": [
[ "\\(", "\\)" ]
],
"displayMath": [
[ "$$", "$$" ]
],
"processEnvironments": true,
"processRefs": true,
"tags": "ams",
"tagSide": "right",
"tagIndent": "0.8em",
"useLabelIds": true,
"maxMacros": 1000,
"maxBuffer": 10240,
"macros": []
},
"chtml": {
"scale": 1.25
}
},
"description": "MathJax configuration to be used client-side. Only relevant with $wgmjClientSide = true.",
"merge_strategy": "array_merge_recursive"
},
"MMLtagsAllowed": {
"value": [ "abs", "and", "annotation", "annotation-xml", "apply", "approx", "arccos", "arccosh", "arccot", "arccoth", "arccsc", "arccsch", "arcsec", "arcsech", "arcsin", "arcsinh", "arctan", "arctanh", "arg", "bvar", "card", "cartesianproduct", "ceiling", "ci", "cn", "codomain", "complexes", "compose", "condition", "conjugate", "cos", "cosh", "cot", "coth", "csc", "csch", "csymbol", "curl", "declare", "degree", "determinant", "diff", "divergence", "divide", "domain", "domainofapplication", "emptyset", "encoding", "eq", "equivalent", "eulergamma", "exists", "exp", "exponentiale", "factorial", "factorof", "false", "floor", "fn", "forall", "function", "gcd", "geq", "grad", "gt", "ident", "image", "imaginary", "imaginaryi", "implies", "in", "infinity", "int", "integers", "intersect", "interval", "inverse", "lambda", "laplacian", "lcm", "leq", "limit", "list", "ln", "log", "logbase", "lowlimit", "lt", "m:apply", "m:mrow", "maction", "malign", "maligngroup", "malignmark", "malignscope", "math", "matrix", "matrixrow", "max", "mean", "median", "menclose", "merror", "mfenced", "mfrac", "mfraction", "mglyph", "mi", "min", "minus", "mlabeledtr", "mmultiscripts", "mn", "mo", "mode", "moment", "momentabout", "mover", "mpadded", "mphantom", "mprescripts", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msubsup", "msup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "naturalnumbers", "neq", "none", "not", "notanumber", "notin", "notprsubset", "notsubset", "or", "otherwise", "outerproduct", "partialdiff", "pi", "piece", "piecewice", "piecewise", "plus", "power", "primes", "product", "prsubset", "quotient", "rationals", "real", "reals", "reln", "rem", "root", "scalarproduct", "sdev", "sec", "sech", "selector", "semantics", "sep", "set", "setdiff", "sin", "sinh", "subset", "sum", "tan", "tanh", "tendsto", "times", "transpose", "true", "union", "uplimit", "variance", "vector", "vectorproduct", "xor" ],
"description": "MathML tags allowed to appear in both user-supplied MathML and converted TeX. Only relevant with $wgmjClientSide = true."
},
"AddWikilinks": {
"value": false,
"description": "Whether TeX command should receive hypelinks to wikipages, according to the setting in MediaWiki:mathjax-pages"
}
}
}