a new start
This commit is contained in:
21
assets/bower_components/katex/docs/cli.md.template
vendored
Normal file
21
assets/bower_components/katex/docs/cli.md.template
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
id: cli
|
||||
title: CLI
|
||||
---
|
||||
|
||||
KaTeX installed [using Node.js package managers](node.md) comes with a
|
||||
built-in command-line interface (CLI) which can be used to render TeX to HTML.
|
||||
By default, CLI will take the input from standard input.
|
||||
|
||||
```bash
|
||||
npx katex
|
||||
```
|
||||
|
||||
> Above uses the `npx` command to run the locally installed executable
|
||||
after `npm install katex`. You can also execute with the relative path:
|
||||
`./node_modules/.bin/katex`
|
||||
|
||||
> To use the CLI from local Git clone, you need to build the project first.
|
||||
See [Building from Source](node.md#building-from-source) for more details.
|
||||
|
||||
## Options
|
||||
Reference in New Issue
Block a user