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.
You can embed it inside Markdown snippets.
Hepek is using the "acute accent mark" ("forward-tick"), ´
for inline math.
On Windows the shortcut is AltGr+9.
For block-level math double-dollar is used, $$
.
Example:
´A \setminus B = {x | x \in A \land x \notin B}´
becomes:
´A \setminus B = \{x | x \in A \land x \notin B\}´.
Example (block-level):
$$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.