mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 11:18:39 +00:00
* Add `markdown-help` command and update CLI documentation * Auto-generate cli.md before start, build, and publish * Update cli.md.template
21 lines
496 B
Plaintext
21 lines
496 B
Plaintext
---
|
|
id: cli
|
|
title: CLI
|
|
---
|
|
|
|
KaTeX installed [using Node.js package managers](node.md) comes with a built-in CLI
|
|
which can be used to render TeX to HTML from the command line. By default, CLI will
|
|
take the input from `stdin`.
|
|
|
|
```bash
|
|
npx katex
|
|
```
|
|
|
|
> Above uses the `npx` command to run the locally installed executable.
|
|
You can execute with the relative path: `./node_modules/.bin/katex`
|
|
|
|
> To use CLI from local clone, you need to build the project first by
|
|
running `npm run build`
|
|
|
|
## Options
|