Markdown Tutorial

Welcome to the Markdown tutorial! Here, we'll cover the basics of Markdown syntax so you can start writing beautiful blog posts in no time. Check this if you want to watch video instead:

Headings

To create a heading, simply prefix your text with a hash symbol (#). The number of hash symbols indicates the level of the heading. For example:

# H1
## H2
### H3
#### H4
##### H5
###### H6

Paragraphs

To create a paragraph, simply write your text on a new line. To create a new paragraph, add a blank line between your paragraphs.

Emphasis

To create emphasis, you can use asterisks (*) or underscores (_) to wrap your text. For example:

*italic*
**bold**
__underline__

Lists

To create an unordered list, prefix each item with a hyphen (-) or an asterisk (*). To create an ordered list, prefix each item with a number followed by a period (.). For example:

- Item 1
- Item 2
- Item 3

1. Item 1
2. Item 2
3. Item 3

Links

To create a link, use the following format:

[Link text](URL)

For example:

[Google](https://www.google.com)

Images

To add an image, use the following format:

![Alt text](image URL)

For example:

![Cute cat](https://placekitten.com/200/300)

Code Blocks

To create a code block, wrap your code in backticks (`) or use triple backticks for a multi-line code block. For example:

Inline code: `console.log('Hello, world!');`


Multi-line code:

```
function greet(name) {
  console.log('Hello, ' + name + '!');
}

greet('world');

```


code with language:

```cpp

int addNum(int a, int b) {
  return a + b;
}

add (29, 40);

```

Math Equation

To write math equations, wrap them with $ for inline and $$ for multiline. Math is done by katex. Search google or visit this: https://sixthform.info/katex/guide.html

Example:

Inline:
$ E = mc^2 $

Multiline: 
$$ 
E = mc^2
m = \frac{E}{c^2}
$$

Also see this for supported syntax: https://katex.org/docs/supported.html

Tables

To add a table, use three or more hyphens (---) to create each column’s header, and use pipes (|) to separate each column. For compatibility, you should also add a pipe on either end of the row.


| Syntax      | Description |
| ----------- | ----------- |
| Header      | Title       |
| Paragraph   | Text        |
Here is a link to more detailed guide: https://www.markdownguide.org/extended-syntax/#tables