Markdown Sample

2024-05-07

2 min read

This is a reference for the styles of my blog. I need it to be here because I write the theme myself, and I can see what goes wrong by taking a glance at this page.

Paragraphs are separated by a blank line.

2nd paragraph. Italic, bold, and monospace. Itemized lists look like:

  • this one
  • that one
  • the other one

Block quotes are written like so.

They can span multiple paragraphs, if you like.

Use 3 dashes for an em-dash. Use 2 dashes for ranges (ex., "it's all in chapters 12--14"). Three dots ... will be converted to an ellipsis. Unicode is supported. ☺

An h1 header

An h2 header

An h3 header

An h4 header

An h5 header
An h6 header

Here's a numbered list:

  1. first item
  2. second item
  3. third item

Code block:

#include <bits/stdc++.h>
using namespace std;

int main() {
    cout << "This is a string" << endl;
    return 0;
}

Tables can look like this1:

First HeaderSecond Header
Content CellContent Cell
Content CellContent Cell
SyntaxDescriptionTest Text
HeaderTitleHere's this
ParagraphTextAnd more

A horizontal rule follows.


and images can be specified like so:

example image
An exemplary image. Caption *should* support markdown but not really (due to bug of Gatsby plugins).

Here's a link.

Inline math equations go in like so: ω=dϕ/dt\omega = d\phi / dt. Display math should get its own line and be put in in double-dollarsigns:

I=ρR2dVI = \int \rho R^{2} dV

And note that you can backslash-escape any punctuation characters which you wish to be displayed literally, ex.: `foo`, *bar*, etc.

Footnotes

  1. Footnote here