mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 11:18:39 +00:00
Add markdown-help
command and auto-generate CLI documentation (#1518)
* Add `markdown-help` command and update CLI documentation * Auto-generate cli.md before start, build, and publish * Update cli.md.template
This commit is contained in:
20
docs/cli.md.template
Normal file
20
docs/cli.md.template
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
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
|
Reference in New Issue
Block a user