mirror of
https://codeberg.org/forgejo/docs.git
synced 2024-12-26 22:51:22 -05:00
user/wiki: document KaTeX
This commit is contained in:
parent
18cfae1d78
commit
9a59a36913
2 changed files with 14 additions and 0 deletions
BIN
docs/_images/user/wiki/katex_example.png
Normal file
BIN
docs/_images/user/wiki/katex_example.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
|
@ -110,3 +110,17 @@ Very basic example for a sidebar:
|
||||||
|
|
||||||
> These files starting with `_` are hidden, so in the web UI you need to manually browse for the files. E.g. for our user _knut_ and his _foobar_ repo:
|
> These files starting with `_` are hidden, so in the web UI you need to manually browse for the files. E.g. for our user _knut_ and his _foobar_ repo:
|
||||||
> `https://codeberg.org/knut/foobar/wiki/_Sidebar`
|
> `https://codeberg.org/knut/foobar/wiki/_Sidebar`
|
||||||
|
|
||||||
|
## Embedding LaTeX-style equations
|
||||||
|
|
||||||
|
The wiki also supports embedding LaTeX-style equations in Markdown files, using [KaTeX](https://katex.org).
|
||||||
|
|
||||||
|
Such equations go between two `$` characters, for example like this:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
$ \frac{1}{2} = 0.5 $
|
||||||
|
```
|
||||||
|
|
||||||
|
This will then result in the following properly rendered equation:
|
||||||
|
|
||||||
|
![The $\frac{1}{2} = 0.5$ equation properly rendered by KaTeX](../_images/user/wiki/katex_example.png)
|
||||||
|
|
Loading…
Reference in a new issue