This is a tutorial on how to make markdown files. No prior knowledge in programming is required.
- What is a markdown file?
- Prerequisite
- Italic
- Bold
- Headers
- Links
- Links (Relative)
- Links (Section)
- Images
- Blockquotes
- Unordered List
- Ordered List
- Task List
- Paragraph (soft break)
- Subscript
- Superscript
- Code (inline)
- Code (block)
- Math Equation (inline)
- Math Equation (block)
- Tables
- Tips
- Exercises
- Convert to website
- It has an extension of
.md
. - A way to write content for the web.
- Has wide range of compatibility. Unlike cumbersome word processing applications, text written in Markdown can be easily shared between computers, mobile phones, and people.
- It’s quickly becoming the writing standard for academics, scientists, writers, and many more.
- Markdown focuses on the content rather than the style. It doesn’t do anything fancy like change the font size, color, or type. All we have control over is the structure of the text - creating headers, organizing lists, giving emphasis etc.
- Source: https://www.markdowntutorial.com/
- Personal reasons why I prefer markdown files:
- It is lightweight.
- No annoying page breaks.
- Has cleaner look.
- Makes the structure more obvious.
- No worries in spacing.
- Install Visual Studio Code.
- Install and configure VS Code extension prettier.
- Create a github account.
- Download github desktop.
_italic_
**bold**
# Header 1
## Header 2
### Header 3
#### Header 4
##### Header 5
###### Header 6
[text](url)
[text](directory)
[text](#section-heading)
Note: Remove special characters
![Alt-text](img-path-or-url)
You may use and download this image.
Note: .gif also works
> your-quote
- Level 1
- Level 2
- Level 3
- Level 4
- Level 1
- Level 1
* Level 1
* Level 2
* Level 3
* SLevel4
* Level 1
* Level 1
1. Level 1
1. Level 2
1. Level 3
1. Level 4
1. Level 2
1. Level 4
- [x] List-1
- [ ] List-2
- [ ] List-3
Do I contradict myself?**
Very well then I contradict myself**
(I am large, I contain multitudes.)
Note: Each * represents a space in keyboard
<sub>subscript</sub>
<sup>subscript</sup>
`inline-code`
Note: It uses a symbol called back quote (`). You can see the back quote symbol in your keyboard here.
```
Block code
```
$ inline-equation $
Use: Equation to Latex Use: Latex Math Cheatsheet - 1 Use: Latex Math Cheatsheet - 2
$$ block-equation $$
Use: Equation to Latex Use: Latex Math Cheatsheet - 1 Use: Latex Math Cheatsheet - 2
| Heading1 | Heading2 | Heading2 |
| -------- | -------- | -------- |
| Data | Data | Data |
| Data | Data | Data |
| Data | Data | Data |
-
Do not use spaces in folder names. Also, use only small caps.
-
Consider compressing your images.
-
Example of tutorials made using markdown files:
-
Further reading:
Do: Exercises
- In Github, go to Settings > Pages. Enable github pages by choosing the branch main, which will be the basis in making the website.
- Choose a theme.
- Click save then wait for the build to finish.
- Make math equation work by adding Mathjax Link in the head.