# Markdown, formulas and diagrams

.md files are rendered: headings, lists, tables, code, LaTeX formulas, mermaid diagrams, links to repository files and wiki links.

## Basics

SKILLOK renders markdown like GitHub: `#` headings, lists, **bold** and *italic*, `>` quotes, tables
with `|`, code in ` ``` ` with a language for highlighting, `- [ ]` checkboxes. Every heading has an
anchor, so you can link to a section.

## Formulas

Formulas use LaTeX notation: inline — `$E = mc^2$`, display — between `$$` on separate lines:

```
$$
\int_0^1 x^2\,dx = \frac{1}{3}
$$
```

## Diagrams

A code block with the `mermaid` language is drawn as a diagram — a flowchart, a sequence, a graph.
The diagram script loads only on pages that have such a block.

## Links and images

* A relative link to a repository file — `[notes](../physics/ohms-law.md)` — leads to that file's
  page in the same branch.
* An image `![diagram](img/diagram.png)` is shown from the repository.
* A wiki link `[[Ohm's law]]` finds a file by name across the whole repository — handy for notes.
* External links open as they are.

## What is not rendered

Scripts and dangerous markup are stripped from a file when it is shown — this protects the reader
and does not limit the author: the file itself is stored untouched.

---

https://skillok.org/docs/en/repositories/files/markdown-and-formulas
