Using Markdown to write documents⚓
source : https://www.markdownguide.org/basic-syntax/
A markdown file is a raw text file that can be edited with any text editor (VScode, Emacs, Notepad...), and viewable with tools like Okular.
Titles⚓
To insert a title, depending on the level:
1 2 3 4 5 6 7 |
|
Emphasis⚓
Bold⚓
1 |
|
This is a bold word
Italic⚓
1 |
|
This is an italic word
Bold and italic⚓
1 |
|
This is a bold word
Blockquotes⚓
1 |
|
This is a blockquote
This is a bold word
1 2 |
|
This is a blockquote
This is a nested blockquote
Unordered Lists⚓
Empty lines are required both before and after a list
1 2 3 |
|
- First element
- Second element
- Third element
Ordered Lists⚓
Empty lines are required both before and after a list
1 2 3 |
|
- First element
- Second element
- Third element
Nested lists⚓
1 2 3 4 5 6 |
|
- First item
- Second item
- Third item
- Indented item
- Indented item
- Fourth item
Code blocks⚓
To insert a code block, you need to use 3 backticks before and after the code block:
1 2 3 |
|
`my command`
Images⚓
To insert an image into a document, for example report.md
, place it in the same directory as the report.md
file, and write, where you want to insert the image:
1 |
|
./image.png
if image.png
is in the same directory as your markdown document, otherwise you need to adapt the path.
THe image will not show up in the text editor, but you can have a render of your document, including the image integration with document viewers like Okular on linux.
Links⚓
1 2 3 |
|
Awesome Git, Gitlab and Markdown training free access website