Markdown Example - Example Site of dark-theme-editor

Markdown Example

<h1> Heading

<h2> Heading

<h3> Heading

<h4> Heading

<h5> Heading
<h6> Heading

Horizontal Rules




Emphasis

This is bold text

This is bold text

This is italic text

This is italic text

Strikethrough

Blockquotes

Blockquotes can also be nested…

…by using additional greater-than signs right next to each other…

…or with spaces between arrows.

Lists

Unordered

  • Create a list by starting a line with +, -, or *
  • Sub-lists are made by indenting 2 spaces:
    • Marker character change forces new list start:
      • Ac tristique libero volutpat at
      • Facilisis in pretium nisl aliquet
      • Nulla volutpat aliquam velit
  • Very easy!

Ordered

  1. Lorem ipsum dolor sit amet

  2. Consectetur adipiscing elit

  3. Integer molestie lorem at massa

  4. You can use sequential numbers…

  5. …or keep all the numbers as 1.

Start numbering with offset

  1. foo
  2. bar

Code

Inline

Inline code

Indented Code

// Some comments
line 1 of code
line 2 of code
line 3 of code

Block code

Block code “fences”

Sample text here...
Sample text here...
Sample text here...

Syntax highlighting

1
2
3
4
5
var foo = function (bar) {
  return bar++;
};

console.log(foo(5));

Syntax highlighting with option

20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
    C Program: Simple Addition

    Description: This program prompts the user to enter two numbers, calculates their sum, and prints the result.
    
    Author: Your Name
    Date: July 23, 2023
*/

#include <stdio.h>

// Function to add two numbers
int add(int a, int b) {
    return a + b;
}

// Main function
int main() {
    // Declare variables
    int num1, num2, result;

    // Prompt user for input
    printf("Enter the first number: ");
    scanf("%d", &num1);

    printf("Enter the second number: ");
    scanf("%d", &num2);

    // Calculate the sum
    result = add(num1, num2);

    // Display the result
    printf("The sum of %d and %d is: %d\n", num1, num2, result);

    return 0; // Indicate successful completion
}

Tables

Default Table

OptionDescription
datapath to data files to supply the data that will be passed into templates.
engineengine to be used for processing templates. Handlebars is the default.
extextension to be used for dest files.

Right aligned columns

OptionDescription
datapath to data files to supply the data that will be passed into templates.
engineengine to be used for processing templates. Handlebars is the default.
extextension to be used for dest files.

Images

Minion Stormtroopocat

Like links, Images also have a footnote style syntax

Alt text

With a reference later in the document defining the URL location:

Footnotes

Footnote 1 link1.

Footnote 2 link2.

Duplicated footnote reference2.

Definition lists

Term 1

Definition 1 with lazy continuation.

Term 2 with inline markup

Definition 2

{ some code, part of Definition 2 }

Third paragraph of definition 2.


  1. Footnote can have markup

    and multiple paragraphs. ↩︎

  2. Footnote text. ↩︎ ↩︎