Friday, 18 October 2024

Guide for Markdown language

Here’s a hands-on guide showing you how to use Markdown with examples of all the key features:


1. Headings

You can create headings by using # symbols. More # means a smaller heading.

# Heading 1 ## Heading 2 ### Heading 3 #### Heading 4

Result:

Heading 1

Heading 2

Heading 3

Heading 4


2. Bold and Italics

You can format text in bold, italic, or bold and italic.

**Bold Text** *Italic Text* ***Bold and Italic Text***

Result:

  • Bold Text
  • Italic Text
  • Bold and Italic Text

3. Lists

Unordered List:

Use -, *, or + to create bullet points.

- Item 1 * Item 2 + Item 3

Ordered List:

Use numbers followed by a period.

1. First 2. Second 3. Third

Result:

  • Item 1
  • Item 2
  • Item 3
  1. First
  2. Second
  3. Third

4. Links

Create a link using [Link Text](URL).

[Visit GitHub](https://github.com)

Result: Visit GitHub


5. Images

Insert an image using ![Alt Text](Image URL).

![GitHub Logo](https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png)

Result:


6. Blockquotes

Use > to create a blockquote.

> This is a blockquote.

Result:

This is a blockquote.


7. Code Blocks

You can insert inline code using backticks (`) or block code using triple backticks (```).

Inline `code` example.

For code blocks:

```python def hello_world(): print("Hello, World!")
**Result:** Inline `code` example. ```python def hello_world(): print("Hello, World!")

8. Horizontal Line

Use ---, ***, or ___ to create a horizontal rule.

---

Result:



9. Task Lists

You can create task lists with - [ ] for incomplete and - [x] for completed tasks.

- [ ] Task 1 - [x] Task 2

Result:

  • Task 1
  • Task 2

10. Tables

Use pipes (|) and dashes (-) to create tables.

| Column 1 | Column 2 | Column 3 | | -------- | -------- | -------- | | Item 1 | Item 2 | Item 3 |

Result:

Column 1Column 2Column 3
Item 1Item 2Item 3

11. Strikethrough

Strike through text using ~~.

~~This text is struck through~~

Result:

This text is struck through


12. Footnotes

Create footnotes with [^1] for reference and [^1]: text for the actual footnote.

This is a footnote reference[^1]. [^1]: This is the footnote text.

Result: This is a footnote reference1.


13. Escaping Characters

Use a backslash (\) to escape Markdown special characters like #, *, or _.

\# Not a heading \*Not italic\*

Result:

# Not a heading
*Not italic*

No comments:

Post a Comment

Golang Advanced Interview Q&A