0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-12-25 22:40:42 -05:00

user/wiki: document KaTeX

This commit is contained in:
Oto Šťáva 2024-11-25 11:56:27 +01:00 committed by Earl Warren
parent 18cfae1d78
commit 9a59a36913
2 changed files with 14 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View file

@ -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:
> `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)