Markdown Syntax

Texts stores documents in a format based on Pandoc Markdown. This page describes details of the syntax.

Headings

First two levels of headings are underlined with equal and minus signs (“setex” syntax), other levels have hash characters as prefix (“atx” syntax).

Heading 1
=========

Heading 2
---------

### Heading 3

#### Heading 4

Lists

Bulleted lists are prefixed by dashes and numbered lists are prefixed by a number and a dot. Items are separated by empty lines to enable multiple paragraphs per item.

-   First item.

    Another paragraph in the first item.

-   Second item.

1.  First numbered item.

2.  Second numbered item.

Quotations

Quotations are prefixed by > character on each line.

>   This a quote.

Images

Markdown has the following syntax for images. Both local images (relative path) and online images (URL) are supported.

![](<image.jpg>)

![](<http://www.texts.io/samples/UDHR.png>)

Tables

Texts can save tables in “pipe” (default) or “grid” syntax.

| One   | Two  |
|-------|------|
| Three | Four |

+-------+------+
| One   | Two  |
+-------+------+
| Three | Four |
+-------+------+

Emphasis

Texts with emphasis or strong emphasis (often displayed as italic and bold) is wrapped in asterisks.

Some *emphasis* and **strong emphasis**.

Footnotes

Footnotes have a mark at the place when they are referenced (caret character and a number in square brackets) and the same mark at the beginning of footnote text.

Main text with a footnote[^1].

[^1]: Footnote text.

Hyperlinks

Hyperlinks can be literal (e.g. URL included directly in the text) or have some custom text. In the latter case URL of the hyperlink is included in a separate paragraph, with a mark similar to footnotes (just a number in square brackets).

See <http://www.texts.io/> for information about [Texts features][1].

[1]: <http://www.texts.io/features/>

Code

Inline code is wrapped in backtick characters and code blocks start and end with a line of tilde characters (multiple of four).

Inline `code` and a block:

~~~~
code block
~~~~

Math

Inline math is wrapped in dollar signs and math blocks start and end with two dollar signs. Standard LaTeX syntax can be used in formulas.

It’s clear that $E=mc^2$ and that

$$
\frac{n!}{k!(n-k)!} = \binom{n}{k}
$$

Please contact support@texts.io if you have any questions.