https://github.com/chanmo/docker-katex
Convert the KaTeX string to HTML or MathML format.
https://github.com/chanmo/docker-katex
docker-katex katex katex2html katex2mathml mathml
Last synced: about 1 year ago
JSON representation
Convert the KaTeX string to HTML or MathML format.
- Host: GitHub
- URL: https://github.com/chanmo/docker-katex
- Owner: ChanMo
- License: mit
- Created: 2023-03-11T03:45:21.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-11T02:30:45.000Z (over 2 years ago)
- Last Synced: 2025-03-05T17:49:13.724Z (about 1 year ago)
- Topics: docker-katex, katex, katex2html, katex2mathml, mathml
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Katex API
A KaTeX string format converting server.
## Usage
Start the API server.
``` {.bash org-language="sh"}
docker run --rm -p 3000:3000 chanmo/katex
```
## API
### Tex2Html
Convert the KaTeX string to HTML string.
Use httpie.
``` {.bash}
http POST :3000/tex2html tex="x^2" --ignore-stdin
```
### Tex2Mathml
Convert the KaTeX string to MathML string.
Use httpie.
``` {.bash}
http POST :3000/tex2mathml tex="x^2" --ignore-stdin
```