Skip to main content

mathfixer, a tool for fixing math in MediaWiki-based wikis

Project description

mathfixer, a tool for fixing math in MediaWiki-based wikis

MediaWiki-based wikis usually use Wikipedia to show math. However, Wikipedia is blocked in some places.

This tool replaces math tags with MathJax to let the math be displayed correctly, using a local proxy at 127.0.0.1 (i.e.: this is not a VPN-like tool).

Installation

mathfixer requires mitmproxy and bs4. You should set the system proxy IP to be 127.0.0.1 and port to be the port configured for mathfixer for it to work. Also, it requires the command line mitmdump (part of mitmproxy) to be in PATH.

Usage

mathfixer

The port 8080 is used for the proxy and the wiki esolangs.org is fixed.

mathfixer -p 1234 -d somewiki.org

The port 1234 is used for the proxy and the wiki somewiki.org is fixed.

You should bypass the browser cache if you accessed the wiki before.

Effect

Before: 2024-09-06-215810.png

After: 2024-09-06-215957.png

Note: Both images are screenshots of https://esolangs.org/wiki/Factorial which means they are both public domain.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mathfixer-1.0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

mathfixer-1.0.1-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page