Hello, world

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

This first post is a kitchen sink: it has every kind of formatting the blog supports, so you can see how each one looks in the current theme. Here’s italic, bold, bold italic, strikethrough, inline code, highlighted text, Ctrl + C, H2O, and E = mc2.

Here is an inline link, a link with a title, an autolinked URL like https://example.com, and a link to another part of this page. You can also use reference-style links.

Images

A plain markdown image:

A river winding through a misty valley

An image with a caption, written in HTML:

A path through a green forest
A figure with a caption. Photo via Lorem Picsum / Unsplash.

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit.

Lists

An unordered list:

  • Lorem ipsum dolor sit amet
  • Consectetur adipiscing elit
    • Nested item one
    • Nested item two
      • Even deeper
  • Sed do eiusmod tempor

An ordered list:

  1. First, preheat the oven
  2. Then, mix the ingredients
    1. Dry ingredients first
    2. Then the wet ones
  3. Finally, bake for 30 minutes

A task list:

  • Set up the blog
  • Write the first post
  • Write the second post

Quotes

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.

— Someone Famous

Quotes can be nested, too:

Donec ullamcorper nulla non metus auctor fringilla.

And they can contain formatting and links.

Code

Some JavaScript, with syntax highlighting:

function greet(name) {
  const greeting = `Hello, ${name}!`;
  console.log(greeting);
  return greeting;
}

greet('world');

And a shell command:

npm run editor

Tables

Feature Supported Notes
Images Yes Drag & drop in the editor
Code blocks Yes Syntax highlighted
Tables Yes Columns can be aligned
Footnotes Yes See the bottom of the post
Math Yes LaTeX, via KaTeX

Embeds

Raw HTML works anywhere in a post, so you can embed things like a YouTube video:

Or a collapsible section:

Click to expand

Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur.


Headings

The ## headings above are level two. Here are the rest:

Heading level three

Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.

Heading level four

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident.

Heading level five

Similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.

Heading level six

Et harum quidem rerum facilis est et expedita distinctio.

Math

Math is written in LaTeX. Wrap it in single dollar signs for inline math, like a2+b2=c2a^2 + b^2 = c^2 or eiπ+1=0e^{i\pi} + 1 = 0, and in double dollar signs for a display equation on its own line:

∑n=1∞1n2=π26\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}

To write a literal dollar sign, escape it: this coffee cost $4.

The theme also has theorem and proof blocks, which number themselves and end the proof with a box:

2\sqrt{2} is irrational.

Suppose, for contradiction, that 2\sqrt{2} is rational. Then we can write 2=pq\sqrt{2} = \frac{p}{q} for integers pp and q≠0q \neq 0 with no common factor.1 Squaring both sides gives

p2=2q2,p^2 = 2q^2,

so p2p^2 is even, which means pp is even.2 Write p=2kp = 2k. Substituting,

(2k)2=2q24k2=2q2q2=2k2,\begin{aligned} (2k)^2 &= 2q^2 \\ 4k^2 &= 2q^2 \\ q^2 &= 2k^2, \end{aligned}

so q2q^2 is even, and therefore qq is even as well.2 But then pp and qq share the factor 22, contradicting our choice of pq\frac{p}{q} in lowest terms. So 2\sqrt{2} is irrational.

Footnotes and sidenotes

Footnotes are handy for asides.3 They’re collected at the bottom of the post automatically, numbered in the order they first appear.4 A footnote can be as long as you like, with several paragraphs, links, or math in it.5

Sidenotes sit in the margin beside the text instead of at the bottom, like in a Tufte-style book.This is a sidenote. On a narrow screen, tap its number to show it. They take a few lines of HTML, and each one needs its own id. A sidenote can also be unnumbered, marked with a ⊕ on narrow screens.An unnumbered margin note, for an aside that doesn’t need a reference.

Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae.

Footnotes

  1. Any fraction can be reduced to lowest terms by dividing out the greatest common divisor of pp and qq. ↩

  2. If pp were odd, say p=2m+1p = 2m + 1, then p2=4m2+4m+1p^2 = 4m^2 + 4m + 1 would be odd too. This footnote is referenced twice in the proof, and both references link here. ↩ ↩2

  3. This is the first footnote. ↩

  4. Footnotes can have names instead of numbers, but they’re still numbered in order. ↩

  5. This footnote has more than one paragraph.

    Indent the following paragraphs by four spaces to keep them in the same footnote. Links work here too: the proof above is a classic, often credited to the Pythagoreans. ↩