Home / Blog / Markdown in 10 Minutes: Write Once, Publish Everywhere

Markdown in 10 Minutes: Write Once, Publish Everywhere

In 2004, John Gruber wanted to write for the web without writing HTML. His answer was Markdown: a way to format text using punctuation you can read as-is. A # becomes a heading, *words* become italic, and the source stays perfectly readable if the formatting is ever stripped away.

Twenty years later, Markdown quietly runs a huge share of the web's text — README files, documentation, chat apps, note-taking tools, static-site generators. If you write anything that ends up on a screen, ten minutes with Markdown pays for itself many times over.

Why Markdown exists

HTML is powerful but noisy. Writing

Title

and bold by hand breaks your flow and buries your words in tags. Markdown's founding rule was that the source should be readable as plain text: an email-style document that also happens to convert cleanly to HTML when you want it to.

That convertibility is the superpower. One Markdown file can become a web page, a PDF, a slide deck or a Word document, because the format describes structure (this is a heading, this is a list) rather than appearance. You stop reformatting the same content for every destination.

The basics: headings, emphasis and paragraphs

Everything common fits in a handful of marks:

Lists, links, images and quotes

The everyday structures of documents:

Code and tables

For technical writing, two more constructs matter. Inline code uses backticks: `npm install`. Fenced code blocks use triple backticks, optionally with a language name for highlighting:

Tables use pipes and dashes. The syntax looks fussy until you have written two of them, then it becomes mechanical:

Where Markdown actually lives

Once you can read it, you start seeing it everywhere. GitHub renders README.md files automatically, which is why open-source projects document themselves in Markdown. Static-site generators turn Markdown posts into blogs. Note apps like Obsidian, Notion's editor and Bear store or accept it. Chat platforms — Slack, Discord, WhatsApp — support a subset for everyday messages.

The practical advice: write anything longer than a paragraph in Markdown by default. Notes, drafts, documentation, even emails you compose in a text editor first. The file you produce today will still be readable in thirty years, which is more than can be said for most proprietary formats.

Mistakes beginners make

Three errors account for most beginner frustration. First, forgetting the blank line: Markdown needs an empty line before a heading or list, or it treats your # as literal text. Second, inconsistent indentation in nested lists — one space too few and your sub-item pops back to the top level. Third, pasting rich text from Word or Google Docs, which smuggles invisible formatting that breaks code blocks and tables.

The fix for all three is the same: write in a plain-text editor, preview often, and when something renders wrong, look at the raw characters around it. Markdown's failures are almost always whitespace you cannot see.

Frequently asked questions

Is Markdown standardized?

Mostly, now. The original spec was loose, which spawned dialects. CommonMark (2014) nailed down the core, and GitHub Flavored Markdown adds tables, task lists and strikethrough on top. For everyday writing they agree; differences only bite with exotic constructs.

Can I use HTML inside Markdown?

Yes — raw HTML passes straight through in most renderers. It is the official escape hatch for anything Markdown cannot express, like embedded videos or styled divs. Use it sparingly; heavy HTML defeats the readability that makes Markdown worth using.

How do I force a line break?

End the line with two spaces before hitting return, or use a backslash at the end of the line. A single plain line break is treated as a space in standard Markdown — a deliberate choice inherited from the format's email roots.

Markdown vs rich text — which should I write in?

Write in Markdown when the text has a future: documentation, notes, anything version-controlled or published. Use rich text for one-off messages where formatting is the point. Markdown's edge is that the source is the backup — readable forever, convertible to anything.

Conclusion

Markdown is a twenty-minute investment that compounds for years. Learn the dozen marks above, write everything in a plain-text editor, and stop thinking about formatting software. Your words become portable, future-proof, and publishable anywhere — which was the whole idea.