A Not-So-Serious Guide to Making Your Docs Look Goodish.
Let’s face it. We’ve all seen the dreaded README.md file. A sad, lonely block of text with all the formatting of a ransom note. Look, you’re not a luddite, and your documentation shouldn’t look like it was written on a stone tablet. Markdown is here to save you from yourself.
Think of Markdown as the little black dress of text formatting. It’s simple, elegant, and makes everything look ten times better without you needing to wrestle with a full-blown word processor. And thanks to GitLab-Flavored Markdown (GLFM), we’re not just making things pretty; we’re making them powerful. We’re talking tables that actually align, diagrams that don’t need a separate app, and a level of clarity that will make your manager weep with joy.
So, let’s ditch the single-file-of-doom and learn how to make our documentation sing (or at least not sound like a dying modem).
Table of Contents
- The Old Stuff: A Quick and Painless Review
- Advanced GLFM: The Stuff That Makes You Look Smart
- Code Blocks: Because You’re a Developer, Not a Poet
- Pro Tips: How to Look Like a Real Professional
- Conclusion: The Happily Ever After
The Old Stuff: A Quick and Painless Review
We’ll start with the basics, because you can’t run before you can crawl. Or in this case, you can’t make a fancy table before you know how to make a heading.
Headings: Use # for headings. One hash for a main title, two for a section, and so on. If you use six hashes, you’re either yelling or have a really granular section.
# The Most Important Part of this Blog
## The Less Important Part
### You Get the Idea
Emphasis: When you need to shout without actually using all caps.
Italics for when you’re being subtle.
Bold for when you need to make a point.
Bold and Italics for when you’re feeling extra dramatic.
Lists: A great way to organize your thoughts, or at least pretend you have them organized.
Unordered Lists: Use * or -. Great for shopping lists or things to get done “eventually.”
Ordered Lists: Use numbers. Perfect for step-by-step guides, like “How to Make Coffee” or “How to Fix That Bug You Just Caused.”
Easy, now to the cooler stuff.
Advanced GLFM: The Stuff That Makes You Look Smart
This is where we leave the kiddie pool and jump into the deep end. GLFM is like standard Markdown on a double espresso. It’s got energy, it’s got focus, and it gets things done.
Tables: Because Lists Can Be So Tiring
Have you ever tried to represent structured data using bullet points? It’s like trying to herd cats. It’s messy, inefficient, and you’re left with a lot of stray data points. Tables are your new best friend.
| Feature | Common Markdown | GFM | GLFM (The Best One) |
|---|---|---|---|
| Basic Formatting | ✔️ | ✔️ | ✔️ |
| Tables | ❌ | ✔️ | ✔️ |
| Task Lists | ❌ | ✔️ | ✔️ |
| Mermaid Diagrams | ❌ | ❌ | ✔️ |
| Auto-generated TOC | ❌ | ❌ | ✔️ |
And just so you can show off, here’s a table showing the progress on your “world domination plan.”
| Task ID | Task Description | Status | Assigned To |
|---|---|---|---|
| WDP-1 | Take over the world. | ⏳ In Progress | All of us |
| WDP-2 | Stop buying so many snacks during meetings. | ⬜ To Do | Everyone else |
| WDP-3 | Pretend to understand what the product manager said. | ✅ Done | You |
This is why we use tables. Because sometimes, you just need to see how badly you’re procrastinating.
Mermaid Diagrams: Drawing without an Art Degree
Remember when you had to make a diagram for your pipeline? You’d open some drawing tool, spend an hour moving boxes around, export it as a PNG, and then the whole thing was instantly out of date the next time someone updated a script.
Mermaid is the solution to that nightmare. It’s code that turns into a diagram, right in your Markdown file. It’s like magic, but for engineers.
Here’s a simple, and hopefully not too depressing, flowchart of a typical developer’s day.
graph TD
%% A developer's daily grind
A[Wake Up] --> B{Check Slack};
B -- All is good --> C[Drink Coffee];
B -- The server is on fire! --> D[Panic and Fix It];
C --> E[Start Coding];
D --> E; %% After the panic subsides
E --> F[Create Merge Request];
F --> G{Wait for Review};
G -- It's a miracle! Approved! --> H[Merge and Deploy];
G -- Nope. A million comments. --> E; %% Back to coding you go!
H --> I[Go Home. Maybe?];

See? Your whole life, beautifully rendered in just a few lines of text.
Code Blocks: Because You’re a Developer, Not a Poet
We get it. You write code. A lot of it. Don’t just paste it in a way that makes everyone squint. Use fenced code blocks with syntax highlighting to make it readable. The computer will love you, and your teammates will thank you.
Example: A Totally-Not-Made-Up Python Snippet
# A totally critical function for our business logic
def is_it_friday():
"""Returns True if it's Friday, False otherwise."""
import datetime
return datetime.date.today().weekday() == 4
if __name__ == "__main__":
if is_it_friday():
print("It's Friday! Time for a beer.")
else:
print("Still not Friday. Keep coding.")
Example: The CLI Commands That Haunt Your Dreams
$ git push --force
# Please don't actually do this on master unless you know what you're doing.
# Or if you like causing chaos. We don't judge.
$ npm install --global lolcatjs
# You're welcome.
Pro Tips: How to Look Like a Real Professional
If you want to go from a Markdown user to a Markdown master, follow these simple rules.
- Don’t Yell: Your headings should be hierarchical.
#for the title,##for a main section, and so on. Jumping around makes it look like you’ve been hitting the keyboard with your face. - Organize Your Thoughts: Use lists for clarity. Use ordered lists when the sequence matters (like a recipe) and unordered lists when it doesn’t (like a list of complaints).
- Cross-Reference Everything: Mention your teammates with
@usernameand link to issues with#issue. This not only looks cool but also keeps everyone in the loop. You’ll look like a collaboration wizard. - Emphasize, Don’t Obfuscate: Use bold and italics sparingly. Your goal is to highlight important things, not to make the entire document look like a chaotic word salad.
- Be Scannable: Your readers are busy people who probably have a dozen browser tabs open. Use short paragraphs and headings to make your content easy to skim. They’ll appreciate it, and you’ll get your point across faster.
Conclusion: The Happily Ever After
See? Mastering Markdown wasn’t so bad, was it? You now have the skills to make your documentation clear, beautiful, and even a little bit fun. You’ve graduated from the stone tablet era and can now write docs that people will actually want to read.
So go forth, fellow wordsmiths. Embrace the power of GLFM. Write your next epic README, document your most recent genius idea in a wiki, and make the world a slightly more formatted place. Your teammates, and your future self, will thank you for it.