Developer

Markdown

Definition

A plain-text way to write formatted content using simple symbols such as # for headings and ** for bold.

Markdown, Essential Tools glossary. Code card showing Markdown syntax with a heading, bold text and a list item

Markdown is a lightweight markup language for writing formatted text in a plain-text editor. You add simple symbols, such as a hash for a heading or asterisks for bold, and software converts them into formatted output such as HTML.

Quick answer: Type # Title for a heading, word for bold and - item for a list. The file is plain text, so it opens anywhere, and tools turn it into a formatted page when needed.

Key Takeaways

  • Plain text first: The source stays readable even without a converter.
  • Created in 2004: John Gruber made it with Aaron Swartz.
  • Many flavors exist: CommonMark and GitHub Flavored Markdown are the best known.
  • Common file ending: Markdown files usually end in .md.
  • Converts to HTML: Most tools output HTML for the web.

Markdown vs HTML

FeatureMarkdownHTML
Source readabilityHigh, looks like a noteLower, full of tags
Learning curveA few symbolsMany tags and attributes
Control over layoutLimitedFull
Typical useDocs, readmes, notes, blog draftsFinished web pages

According to Wikipedia, John Gruber created Markdown in 2004 as a markup language that is easy to read in its source form, and it is widely used for blogging and instant messaging. The CommonMark project notes that Gruber’s original description did not specify the syntax unambiguously, which is why a formal specification was needed.

Why Markdown Matters

Markdown lets you write fast and keep the content portable. A note written today opens in any text editor ten years from now.

It also keeps writers away from tags. You focus on the words, and a converter handles the markup.

The catch is that different tools read the same file slightly differently. GitHub Flavored Markdown, for example, is a formal spec based on CommonMark that adds features such as tables.

How to Write Basic Markdown

Step 1: Add Headings

Start a line with one to six hash symbols followed by a space.

Check: A preview shows the line as a heading.

Step 2: Format Text

Wrap words in asterisks for emphasis. Use two on each side for bold.

Check: The words look bold or italic in the preview.

Step 3: Make Lists and Links

Start lines with a hyphen for bullets, and write links as text.

Check: Bullets appear and the link text is clickable.

Step 4: Preview in Your Target Tool

Open the file in the editor or site where it will be published.

Check: The output matches what you expected, including tables.

An Illustrative Example

A developer writes a project readme in Markdown with a heading, an install list and a code block. The same .md file displays nicely on a code-hosting site and reads fine in a plain editor.

Myths vs Reality

  • Myth: Markdown is one fixed standard. Reality: Several flavors exist, so features such as tables vary.
  • Myth: Markdown replaces HTML. Reality: It covers common formatting, and many tools allow raw HTML for the rest.
  • Myth: It only works for developers. Reality: Notes apps and blogging tools use it for everyone.

Quick Tip

If you plan to move content between tools, stick to the basic syntax from CommonMark. Fancy extensions often break when you switch.

Mistakes to Avoid

  • Forgetting the space after #: Many parsers won’t treat it as a heading.
  • Assuming tables always work: Check your tool’s flavor.
  • Mixing tabs and spaces in lists: Nested lists can break.
  • Pasting rich text and expecting Markdown: Convert it first.
  • Skipping a preview: Always check the rendered result.

FAQ

What Is Markdown Used For?

Readmes, documentation, notes, forum posts, chat messages and blog drafts.

Who Created Markdown?

John Gruber, with help from Aaron Swartz, released it in 2004.

What Is CommonMark?

A strongly defined, testable specification of Markdown that removes ambiguity in the original description.

What File Extension Does Markdown Use?

Usually .md or .markdown.

Is Markdown the Same as HTML?

No. Markdown is a shorter way to write content that is often converted to HTML.

Can I Use Markdown in WordPress?

Some editors and plugins support it, while the block editor mainly uses its own blocks.

Where to Go Next

Kinsta BFCM Deal