Debian Codegraph @

extensions/Math/README

raw
1 The version for MediaWiki 1.31+ has some changes since previous versions:
2
3 By default the math rendering service from the Wikimedia Foundation located at
4 https://wikimedia.org/api/rest_v1/
5 will be used for math rendering.
6 Therefore php-curl is required.
7 cf. https://www.mediawiki.org/wiki/Manual:CURL
8
9 Consult https://www.mediawiki.org/wiki/Extension:Math for further information and advanced settings.
10
11 Attributes of the <math /> element:
12 attribute "display":
13 possible values: "inline", "block" or "inline-displaystyle" (default)
14
15 "display" reproduces the old texvc behavior:
16 The equation is rendered with large height operands (texvc used $$ $tex $$ to render)
17 but the equation printed to the current line of the output and not centered in a new line.
18 In Wikipedia users use :<math>$tex</math> to move the math element closer to the center.
19
20 "inline" renders the equation in with small height operands by adding {\textstyle $tex } to the
21 users input ($tex). The equation is displayed in the current text line.
22
23 "inline-displaystyle" renders the equation in with large height operands centered in a new line by adding
24 {\displaystyle $tex } to the user input ($tex).
25
26 For testing your installation run
27 composer phpunit:entrypoint -- extensions/Math/tests/phpunit/
28 from your MediaWiki home path.
29
30 == Logging ==
31 The math extension supports PSR-3 logging:
32 Configuration can be dona via
33 $wgDebugLogGroups['Math'] = [ 'level' => 'info', 'destination' => '/path/to/file.log' ];