What is an .md file?
An .md file is a Markdown document. It is a very simple text file that lets you format text using basic keyboard symbols.
Instead of clicking buttons to make text bold or create lists (like you do in Microsoft Word), you just type symbols like stars (*) or hashes (#). This makes writing very fast.
Why people love Markdown
Never Leave the Keyboard
You do not need to use your mouse to click formatting buttons. You can write your thoughts down as fast as you can type.
It works everywhere
It is just plain text. A Markdown file written today will still open on any computer 50 years from now. You are never locked into one app.
Turns into Websites
Computers can easily read Markdown and turn it instantly into clean HTML (the code that builds websites). This makes it perfect for blogs.
How does it work?
The process is simple. You write plain text with special symbols. A program reads it, and shows it to you as nicely designed text.
1. You type this
2. You see this
The Syntax Cheat Sheet
Learn the rulesHere is exactly how to type different formats using Markdown. The dark box shows what you type. The light box shows the result.
- First item
- Second item
- Third item
- Step one
- Step two
- Step three
If you write instructions for computer programs, Markdown is the best tool. You use the "backtick" symbol ( ` ) to show code.
ENTER key.
print("Hello!")
}
"Keep it simple and clean."
| Name | Age | Job |
|---|---|---|
| Sarah | 25 | Writer |
| Mike | 30 | Builder |
Where do people use Markdown?
You might be using Markdown right now without knowing it. Many popular websites use it so you can type messages quickly.
The Magic Backslash
What if you actually want to type a star (*) without making the text bold? You use a backslash (#) right before the symbol. This tells the computer to ignore the rule.
Common Mistakes for Beginners
Forgetting the space in headings.
This will just look like plain text with a hash in front of it.
Always add a space after the hash.
This will correctly turn into a giant, bold heading.
Secret Trick: You can mix HTML
Markdown is not meant to replace HTML perfectly. If Markdown cannot do something (like making text red, or centering a picture), you can just type standard HTML right in the middle of your Markdown file!
<br>
<span style="color: red;">But this is red HTML text!</span>
Different "Versions" of Markdown
Markdown was invented in 2004. Over the years, people added new features to it. We call these different versions "Flavors". They all share the same basics, but some have extra powers.
Standard Markdown
The very first version. It is very simple but does not support things like tables or task lists.
GFM
GitHub Flavored Markdown.
This is what most people use today. It adds tables, checklists, and strikethrough text.
MultiMarkdown
A heavy-duty version used by professional writers to make footnotes, math equations, and book chapters.
How do I turn it into a PDF?
You cannot send a `.md` file to someone who does not know what it is. You need to convert it. Most writing apps (like Obsidian or Typora) have an "Export" button.
The 3 Golden Rules
Always leave blank lines
Markdown relies on empty space. If you want a new paragraph, press ENTER twice. If things look broken, you probably forgot a blank line.
Use standard fonts when writing
Don't try to make the `.md` text look fancy while you are typing it. Use a clear, simple font. Let the app make it look pretty when it is finished.
It is okay to forget
Nobody remembers all the symbols. It is completely normal to keep a cheat sheet open on your screen while you learn.
Best Tools to Write Markdown
Because Markdown is just text, you can write it in Windows Notepad or Apple TextEdit. However, special apps make it look prettier while you type.
| Tool Name | Best For | Price |
|---|---|---|
| Obsidian | Taking personal notes and linking ideas. | Free |
| VS Code | Programmers writing software documentation. | Free |
| Typora | Writers who want a very clean screen. | Paid |
You are ready to write.
Do not try to memorize everything. Just start using a few hashes (#) for your titles and stars (*) for bold text. You will get used to it in no time.