To add two first headers are two syntax ways for display:
-
First syntax form.
First level header ================== Second level header ------------------
-
Second syntax form.
# First level header ## Second level header
and both showing same output:
To add more header levels its only necessary add #
as shown:
### Third level header
#### Fourth level header
output:
This table is taken from the Markdown guide on Google Colab.
Markdown | Preview |
---|---|
**bold text** |
bold text |
*italicized text* or _italicized text_ |
italicized text |
`Monospace` |
Monospace |
~~strikethrough~~ |
Enumerated list.
1. Computer
2. Keyboard
3. Mouse
output:
- Computer
- Keyboard
- Mouse
Bullet list.
- Computer
- Keyboard
- Mouse
output:
- Computer
- Keyboard
- Mouse
Link without title.
To go the Github page click [here](https://github.com/)
output:
To go the Github page click here
Link with title.
To go the Github page click [here](https://github.com/ "Github Home")
output:
To go the Github page click here
File in repository.
To see the code file click [here](../master/path/to/file)
Inline image without title.
![Github logo](https://github.githubassets.com/images/modules/logos_page/GitHub-Logo.png)
output:
Inline image with title.
![Github logo](https://github.githubassets.com/images/modules/logos_page/GitHub-Logo.png "Github Logo")
output:
Inline image file in repository.
![txt](../master/path/to/img)
To showing a code block use this syntax
```python
def sum(a, b):
return a + b
```
```cpp
void sum(int a, int b) {
return (a + b)
}
```
output:
def sum(a, b):
return a + b
void sum(int a, int b) {
return (a + b);
}