📖Markdown-Demo

Markdown Demonstration Document

This document showcases the most common Markdown syntax elements. Use this as a quick reference or cheat sheet.

1. Headings

Heading 1 (H1)

Heading 2 (H2)

Heading 3 (H3)

Heading 4 (H4)

##### Heading 5 (H5)
###### Heading 6 (H6)

2. Paragraphs and Line Breaks

This is a standard paragraph. Just write plain text.
To create a line break without starting a new paragraph, end a line with two spaces (as seen at the end of this line).

This is a new paragraph, separated by a blank line in the source.

3. Emphasis (Bold & Italic)

  • Italic or Italic (using asterisks or underscores)

  • Bold or Bold (using asterisks or underscores)

  • Bold and Italic or Bold and Italic

  • Strikethrough (using tildes)

4. Lists

Unordered Lists

  • Item 1

  • Item 2

* Nested Item 2.1
* Nested Item 2.2

  • Item 3

Ordered Lists

  1. First item

  2. Second item

*. Nested first item
*. Nested second item

  1. Third item

Task Lists (GitHub Flavored)

  • Completed task

  • Incomplete task

  • Another pending task

This is a link to OpenAI.

This is a reference link.

Images

Linking an Image

img { https://via.placeholder.com/50 { Alt text } }

6. Blockquotes

This is a standard blockquote.
It can span multiple lines.

And you can nest blockquotes inside each other.

7. Code

Inline Code

Use the printf() function for output.

Fenced Code Blocks (with language highlighting)

def hello_world():
    # This is a Python code block
    print("Hello, Markdown!")
    return True