TeXPatch (Python)
TeXPatch fixes small TeX/LaTeX quirks in Markdown so it renders cleanly in KaTeX/MathJax.
This is a minimal Python port with a safe, local transform and a CLI.
Install
pip install texpatch
Usage
API:
from texpatch import convert
print(convert('f(x)=|x|')) # f(x)=\lvert x\rvert
CLI:
echo "f(x)=|x|" | python -m texpatch
Notes:
- Guardrails: does not modify fenced or inline code.
- For fuller rule coverage see the JavaScript library
texpatch.
Metadata
Release files for texpatch 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| texpatch-0.1.1.tar.gz | 1.9 kB | Without provenance | Details for texpatch-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| texpatch-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for texpatch-0.1.1-py3-none-any.whl |
Total release size: 3.5 kB
Release files / texpatch-0.1.1.tar.gz
| Download URL | texpatch-0.1.1.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
efa067eeab8a02e365d79016d5baa6224794adf48b244b3db91ade5a527c5db6
|
|
BLAKE2b-256 checksum How to use checksums |
6e9d6b2decca14a257c880a158a6678631c1d3760bb51e9a9c8259e645e9b107
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / texpatch-0.1.1-py3-none-any.whl
| Download URL | texpatch-0.1.1-py3-none-any.whl |
|---|---|
| Size | 1.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfbec6ad0579d16f28217ea3cb10d41ff0da0b3c89db4e789a922c8aa5270dc5
|
|
BLAKE2b-256 checksum How to use checksums |
9825d0913db04a46c52d2be20067da83cfbdc70da2e2d6b8da8982402fa722a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for texpatch 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.