This service hosts a Mathoid server, that can be used with the CLI configuration of Extension:Math.
Given you have copied _client/mathoid-remote
from this repository to /usr/local/bin/
of your server and you have this service running at http://localhost:10044/
, you can configure the Math extension like this:
$GLOBALS['wgMathoidCli'] = [
'/usr/local/bin/mathoid-remote',
'http://localhost:10044/'
];
Run curl
like this:
curl \
-X POST "http://localhost:10044/" \
-d "q={\\displaystyle \\overbrace{ 1+2+\\cdots+100 }^{5050}}&type=tex"
curl \
-X POST "http://localhost:10044/" \
-d "q={\\displaystyle \\ce{CO2 + C -> 2 CO}}&type=chem"
docker build -t bluespice/formula:latest .
HINT: We align the image tags with the version of BlueSpice that it is compatible with.
Example:
docker tag bluespice/formula:latest bluespice/formula:4
docker tag bluespice/formula:latest bluespice/formula:4.4
docker tag bluespice/formula:latest bluespice/formula:4.4.1
Example:
docker push bluespice/formula:latest
docker push bluespice/formula:4
docker push bluespice/formula:4.4
docker push bluespice/formula:4.4.1
Install trivy
and run trivy image bluespice/formula
to check for vulnerabilities.