An open API service indexing awesome lists of open source software.

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.

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