Example Doc

This page shows how gists are formatted by Gist Press.

Math

TeX is rendered using KaTeX.

Use $ for inline expressions, eg. (1+x)2(1+x)^2(1+x)2, and $$ for blocks:

∫0∞e−x2dx\int_0^\infty e^{-x^2} dx 0ex2dx

Use `$` for inline expressions, eg. $(1+x)^2$, and `$$` for blocks:

$$
\int_0^\infty e^{-x^2} dx
$$

Code

Code is highlighted using highlight.js, supporting 185 languages.

A Clojure code block:

(defn x [a b] (+ a b))
```clj
(defn x [a b] (+ a b))
```

Markdown

Markdown is parsed by markdown-it.

Sidenotes are a feature of Tufte CSS and can be used via standard pandoc footnote syntax.

Here is a sidenoteSidenote content . Sidenotes can be defined inline.Like this . Or have multiple paragraphsA long sidenote. Subsequent paragraphs are indented, to indicate they are a continuation of the note. .

Here is a sidenote[^A].
Sidenotes can be defined inline.^[Like this].
Or have multiple paragraphs[^long-note].

[^A]: Sidenote content

[^long-note]: A long sidenote.

    Subsequent paragraphs are indented, to indicate
    they are a continuation of the note.

Standard features like lists and images are of course supported.

  • a
  • list

- a
- list

![A beach](http://alturl.com/gcby9)

HTML

Simple HTML elements with classes are allowed:

A new thought

<span class='newthought'>A new thought</span>
Applied Science logo
Gist Press is an Applied Science experiment, built with Tufte CSS.