Markdown Reference
Posted

Common text

Emphasized text

Strikethrough text

Strong text

Strong emphasized text

H1

H2

H3

H4

H5
H6
HeadingItem
Sub-heading 1Item 1
Sub-heading 2Item 2
Sub-heading 3Item 3
Sub-heading 4Item 4
Left aligned HeaderRight aligned HeaderCenter aligned Header
Content CellContent CellContent Cell
Content CellContent CellContent Cell
  • Item 1
  • Item 2
  • Item 3
  • Bullet list
    • Nested bullet
      • Sub-nested bullet etc
  • Bullet list item 2
  1. A numbered list
    1. A nested numbered list
    2. Which is numbered
  2. Which is numbered

Blockquote

Nested blockquote


$x={-b \pm \sqrt {b^2 - 4ac}\over2a}$

inline codeblock

pub fn highlight_line(code: &str) -> String {
    use syntect::{
        easy::HighlightLines,
        highlighting::ThemeSet,
        html::{
            append_highlighted_html_for_styled_line, start_highlighted_html_snippet,
            IncludeBackground,
        },
        parsing::SyntaxSet,
        util::LinesWithEndings,
    };

    let ss = SyntaxSet::load_defaults_newlines();
    let syntax = ss
        .find_syntax_by_token("rs")
        .unwrap_or_else(|| ss.find_syntax_plain_text());

    let ts = ThemeSet::load_defaults();
    let theme = &ts.themes["base16-ocean.dark"];

    let mut highlighter = HighlightLines::new(syntax, theme);
    let (mut html, bg) = start_highlighted_html_snippet(theme);

    for line in LinesWithEndings::from(code) {
        let regions = highlighter.highlight_line(line, &ss).unwrap();
        append_highlighted_html_for_styled_line(
            &regions[..],
            IncludeBackground::IfDifferent(bg),
            &mut html,
        )
        .unwrap();
    }

    html.push_str("</pre>\n");

    html
}
<a id="post" href="<!-- link -->">
    <div id="title">
        <span id="hash">#</span>
        <span id="text"><!-- title --></span>
    </div>
    <div id="metadata">
    </div>
    <summary>
        <!-- summary -->
    </summary>
</a>

Image

Centered Image

<- Back