Introduction
Markdown is a lightweight markup language with plain-text-formatting syntax. It is often used for formatting readme files, for writing messages in online discussion forums, etc.
Common Markdown Syntax
Headers
Markdown supports two styles of headers.
The Setext-style headers are underlined using equal signs (=) for the first-level headers and hyphens (-) for the second-level headers.
The Atx-style headers consist of 1-6 hash (#) characters at the beginning of the line, with the number of hashes determining the header’s level.
Both styles of headers are supported by most Markdown processors.
Lists
Markdown supports ordered (numbered) and unordered (bulleted) lists.
Unordered List
- Item 1
- Item 2
- Nested Item
Ordered List
- First Item
- Second Item
Links
Links in Markdown can be either inline or reference-style links.
Inline links are created by wrapping the link text in square brackets [] and the URL in parentheses ().
Reference-style links use square brackets for the link text and a reference at the bottom of the document containing the URL.
Conclusion
Markdown is a simple yet powerful tool for quickly formatting text with minimal effort. Its syntax is easy to learn and widely supported across various platforms.