Metadata-Version: 2.4
Name: texpatch
Version: 0.1.1
Summary: Fix TeX/LaTeX quirks in Markdown for KaTeX/MathJax (Python minimal).
Project-URL: Homepage, https://github.com/pakkinlau/TeXPatch
Project-URL: Source, https://github.com/pakkinlau/TeXPatch
Project-URL: Issues, https://github.com/pakkinlau/TeXPatch/issues
Author: Pak Kin Lau
License: MIT
Keywords: cli,katex,latex,markdown,mathjax,obsidian,quarto,tex
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Text Processing
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# 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:

```py
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`.
