Math support

Hepek has support for KaTeX math library.
KaTeX is using the LaTeX syntax, so it is good to familiarize yourself with it.
You need to extend KatexDependencies to import the CSS/JS stuff.

Inline usage

Easiest way is to embed it inside Markdown snippets.
Hepek is using the ´ marker for inline math (called "acute accent mark" or "forward-tick").
On Windows the shortcut is AltGr+9.

Example:

´A \setminus B = {x | x \in A \land x \notin B}´

becomes:
´A \setminus B = \{x | x \in A \land x \notin B\}´.

Block usage

For block-level formulas use $$ (double-dollar).

Example:

$$A \setminus B = {x | x \in A \land x \notin B}$$

becomes:
$$A \setminus B = \{x | x \in A \land x \notin B\}$$

You need to be careful with Scala's character escaping, e.g. when you want to type \notin Scala will try to parse \n as newline...
So you'll get into that with trial and error.