• Kitchen Sink

    This is a comprehensive kitchen sink for testing Pandoc and web rendering.

    *~

    Headings

    H3 Heading

    H4 Heading

    H5 Heading
    H6 Heading

    Paragraphs and Emphasis

    There are normal text Italic text, bold text, bold italic, strikethrough and a very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooog word.

    Here’s some superscript and subscript text.

    This is a paragraph with a line break.
    This text appears on a new line due to two trailing spaces.

    Lists

    Unordered Lists

    • Level 1
      • Level 2
        • Level 3
          • Level 4
            • Level 5
              • Level 6
      • Level 2
    • Level 1
    • Level 1

    Ordered Lists

    1. Level 1
      1. Level 2
        1. Level 3
          1. Level 4
            1. Level 5
              1. Level 6
      2. Level 2
    2. Level 1
    3. Level 1

    Task Lists

    Link with title

    External Webpage

    Internal Webpage

    Internal Image

    Image with link: Clickable Image

    https://example.com

    Email:

    Code

    Inline Code

    Use print("hello world") in Python.

    loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooog code

    Code Blocks

    #include <iostream>
    #include <print>
    
    int main(int /* argc */, char ** /* argv */) {
        try {
            std::ios::sync_with_stdio(false);
        } catch (const std::exception &e) {
            println(std::cerr, "Error: {}", e.what());
            return EXIT_FAILURE;
        }
        return EXIT_SUCCESS;
    }
    // comment
    /* multiline
       comment */
    
    use std::collections::HashMap;
    
    /// document comment
    #[derive(Debug)]
    enum Status {
        Active(i32),
        Inactive,
    }
    
    struct User<'a> {
        name: &'a str,
        age: u8,
    }
    
    trait Greet {
        fn greet(&self) -> String;
    }
    
    impl<'a> Greet for User<'a> {
        fn greet(&self) -> String {
            format!("Hello, {}!", self.name)
        }
    }
    
    fn main() {
        let x = 42;
        let mut y = 3.14;
        const MAX: usize = 100;
    
        let s = "Hello, Rust! There is a loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooog string";
        let raw = r#"Raw string with "quotes""#;
    
        let c = 'R';
        let newline = '\n';
    
        let hex = 0xFF;
        let bin = 0b1010;
        let oct = 0o17;
    
        if x > 0 && y < 10.0 {
            println!("{}", s);
        } else {
            return;
        }
    
        for i in 0..5 {
            if i == 2 { continue; }
            if i == 4 { break; }
        }
    
        let status = Status::Active(1);
        match status {
            Status::Active(n) => println!("Active: {n}"),
            Status::Inactive => println!("Inactive"),
        }
    
        let add = |a: i32, b: i32| -> i32 { a + b };
        let result = add(5, 3);
    
        let mut map: HashMap<&str, i32> = HashMap::new();
        map.insert("key", result);
    
        println!("Result: {}", result);
        assert_eq!(result, 8);
    
        let opt: Option<i32> = Some(42);
        if let Some(val) = opt {
            println!("Value: {val}");
        }
    
        let user = User { name: "Alice", age: 30 };
        let greeting = user.greet();
    
        unsafe {
            let ptr = &x as *const i32;
            println!("Pointer: {:p}", ptr);
        }
    }
    
    fn swap<T>(a: T, b: T) -> (T, T) {
        (b, a)
    }
    
    #[cfg(test)]
    mod tests {
        #[test]
        fn it_works() {
            assert_eq!(2 + 2, 4);
        }
    }
    #!/bin/bash
    echo "Starting process..."
    for i in {1..5}; do
        echo "Step $i"
    done
    echo "Process complete!"

    Blockquotes

    This is a blockquote.

    Nested blockquote.

    Triple nested blockquote.

    Tables

    Basic Table

    Syntax Description
    Header Title
    Row 1 Data
    Row 2 More Data

    Aligned Table

    Left Aligned Center Aligned Right Aligned
    Left Center Right
    Text Text Text
    123 456 789

    Complex Table

    Feature Markdown HTML Pandoc
    Headers
    Lists
    Tables
    Math
    Footnotes

    This project uses Pandoc to generate HTML files.

    → Official documentation: Pandoc Manual

    Footnotes

    Here is a footnote reference1. Here’s another one2.

    Math

    Inline Math

    The famous equation is E = mc^2. The quadratic formula is x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}.

    Block Math

    \int_0^\infty e^{-x} dx = 1

    \sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}

    \begin{aligned} f(x) &= x^2 + 2x + 1 \\ &= (x+1)^2 \end{aligned}

    Definition Lists

    Term 1
    Definition 1
    Term 2
    Definition 2a
    Definition 2b

    Special Characters and Entities

    Copyright: © Registered: ® Trademark: ™

    Arrows: ← → ↑ ↓

    Greek: α β γ Δ

    Math: × ÷ ± ≠

    Abbreviations

    The HTML specification is maintained by the W3C.

    Emojis

    :smile: :heart: :rocket: :tada: :100:

    😀 😃 😄 😁 🎉 🚀 ⭐ ✅

    Escape Characters

    * This is not italic *

    # This is not a heading

    [This is not a link](example.com)

    Line Blocks (Pandoc specific)

    The limerick packs laughs anatomical
    In space that is quite economical.
       But the good ones I’ve seen
       So seldom are clean
    And the clean ones so seldom are comical

    1. This is the footnote text.↩︎

    2. Here’s a longer footnote with multiple paragraphs.

      You can indent paragraphs to include them in the footnote.↩︎