Using Markdown to write documents⚓
source :
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⚓
1 2 3 4 | |
Emphasis, or italics, with asterisks or underscores.
Strong emphasis, or bold, with double asterisks or underscores.
Combined emphasis with asterisks and underscores.
Strikethrough with double tildes. Scratch this.
Blockquotes⚓
1 | |
This is a blockquote
1 2 3 4 | |
This is a blockquote
This is a nested blockquote
The blockquote continues
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⚓
Use four spaces to indent a nested list
1 2 3 4 5 6 | |
- First item
- Second item
- Third item
- Indented item
- Indented item
- Fourth item
1 2 3 4 5 6 7 8 | |
- First item
- Second item
- Third item
- Indented item
- Super indented item
- Super indented 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 | |
To insert code directly into a line of text, you need to surround the code with a backtick on each side: `my command`
Tip
To display the backticks : `` `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 | |
The ../img/markdown/kitten-1.jpg is the relative path to the image file from the present markdown file. You eventually need to adapt the path depending on your project architecture.
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
