Subscribe via RSS

Markdown and LaTeX in Flashtex

Format questions and answers with Markdown, LaTeX, cloze deletions, images, and tables.

You can write questions and answers in Markdown, including LaTeX formulas. The same guide is in Settings under Markdown and LaTeX in Flashtex, and behind the question mark in the card editor.

LaTeX

Flashtex renders LaTeX with KaTeX. Wrap inline math with one $ and displayed math with two.

Let $x=3$ and $$f(x)=x^2$$

That example shows an inline x=3 and a displayed f(x)=x^2. Supported functions are listed in the KaTeX docs.

Paragraphs

A paragraph is one or more consecutive lines of text, followed by a blank line.

Sol amica, non iam asillacet stare esse st essatrat. Quine exspectacet. Subit? Cur Amica, non placet sine ce! Quis villa sinus viam cet sol, non ia?

Cur venire ca sine asintium clacet estat. Eccet st? Etiam amat? Cur Amicanit? Non vilenis silentiacessat, asillacet est estat. Quis villa non plaviacet.

Highlight

Wrap a word or sentence with two colons on each side. This is very ::important:: becomes This is very important.

Headings

Put one or more # symbols before the heading text. More # symbols make a smaller heading.

# The largest heading
## The second largest heading

##### The 5th largest heading

Block quotation

Start a line with > for a block quote.

> This is a block quote

Cloze deletion

Wrap the hidden phrase with two square brackets: [[like this]].

Bold and italic

*This text will be italic*
**This text will be bold**
**This text will be bold and _italic_**

Bold and italic can use * or _.

Strikethrough

Wrap the text with tildes.

a ~strikethrough~ element

Code

Use one backtick for inline code and three backticks for a code block.

Unordered lists

Start each item with *, -, or +.

* Item
+ Item
- Item

Ordered lists

Start each item with a number.

1. Item 1
2. Item 2
3. Item 3

The numbers you type do not change the order Flashtex produces. You can repeat the same number on every item.

Nested lists

Indent list items to nest them.

1.  Item 1
    1. A corollary to the above item.
    2. Yet another point to consider.
2.  Item 2
    * A corollary that does not need to be ordered.
    * This is indented four spaces
    * You might want to consider making a new list.
3.  Item 3

Wrap the link text in [ ] and the URL in ( ).

[Personal Website](https://kruschel.dev/)

Images

![Alt text](url/to/image)

![Alt text](url/to/image "Optional title")

You can set dimensions after the URL:

![Alt text](url/to/image =250x250 "Optional title")

![Alt text](url/to/image =250x* "Optional title")

Tables

| Tables        | Are           | Cool   |
| ------------- |:-------------:| ------:|
| **col 3 is**  | right-aligned |   1600 |
| col 2 is      | *centered*    | $x=12$ |