Skip to main content

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.

Metadata

Release files for mathfixer 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mathfixer 1.0.1
File Size Uploaded
mathfixer-1.0.1.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mathfixer 1.0.1
File Interpreter ABI Platform
mathfixer-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / mathfixer-1.0.1.tar.gz

Download URL mathfixer-1.0.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8e97ca2a3e062360d36875fe8a843ca33e8a6f6b4cb6e67da1b5dd9d9072cbec
BLAKE2b-256 checksum
How to use checksums
c16ac6dbc96b9e953088b9856b4926055625cf72946341f1f75316e0b7607007
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.0

Release files / mathfixer-1.0.1-py3-none-any.whl

Download URL mathfixer-1.0.1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31ad28782fd5c904f36cdc7b4a24d6f58115284db8641072710f7ec71f1be707
BLAKE2b-256 checksum
How to use checksums
d60661d5e734ced7640ffba3e89216887620371951c7551696a71ab7ebd0d6e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.0

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page