iLoveConverter
Categories 11 categories
Document Markup

Markdown, Explained

iLoveConverter Team 3 min read

On this page

Markdown is the most popular lightweight markup language in the world. Created in 2004 by John Gruber and Aaron Swartz, it was designed with a single philosophy: make writing as easy as reading plain text. No angle brackets, no closing tags, no complex attribute syntax — just natural text with a few simple markers that render into beautifully formatted HTML. Today Markdown powers GitHub README files, every blog engine (WordPress, Ghost, Hugo, Astro), documentation sites (MkDocs, Docusaurus), note-taking apps (Obsidian, Notion), static site generators, and even chat interfaces. If you have ever typed **bold** or # Heading, you have used Markdown.

What Markdown looks like

# Heading 1

This is a paragraph with **bold** and *italic* text.

- List item one
- List item two

> A blockquote.

`inline code` and full code blocks:

```python
def hello():
    print("Hello, Markdown!")
```

[Link text](https://example.com)
![Alt text](image.png)

| Left | Center | Right |
|------|:------:|------:|
| A | B | C |

Compare that to the equivalent HTML — Markdown is dramatically more readable in source form.

Technical details

AspectDetails
Original spec“Markdown Syntax” (Gruber, 2004) — informal
Standardized variantCommonMark (2014) — precise, testable spec
ExtensionsGitHub Flavored Markdown (GFM), MultiMarkdown, kramdown
OutputHTML by default; other formats via Pandoc
File extension.md, .markdown, .mdown, .mkd
LimitationsNo complex layout, no advanced tables without extensions, no direct interactivity

Markdown vs HTML vs reStructuredText

FeatureMarkdownHTMLreStructuredText
Source readabilityExcellentPoorGood
Syntax overheadMinimalHeavyModerate
Complex formattingLimitedFullModerate
TablesSimple (GFM extends)FullFull
Code highlightingVia extensionsVia <code>Via .. code-block::
Learning curveLowHighModerate
EcosystemMassiveUniversalModerate (Python-centric)

Conversion routes

  • Markdown to HTML — the primary conversion path. Libraries like marked, remark, markdown-it, or Pandoc produce semantic HTML.
  • HTML to Markdown — useful for importing legacy content into Markdown-based workflows. turndown (JS) and Pandoc handle this.
  • Markdown to PDF — convert Markdown to HTML first, then print to PDF, or use Pandoc with LaTeX.
  • Markdown to DOCX — Pandoc’s pandoc input.md -o output.docx preserves headings, lists, and tables.

Common pitfalls

  • Inconsistent parsers — vanilla Markdown has an informal spec, so different engines render differently. Use CommonMark-compliant parsers for consistency.
  • GFM-only features — task lists (- [x]), tables, and strikethrough (~~text~~) are GitHub extensions, not vanilla Markdown. They may not render elsewhere.
  • No WYSIWYG round-trip — Markdown converts to HTML, but converting HTML back to Markdown loses subtle formatting intent.
  • Indentation matters — in vanilla Markdown, 4 spaces create a code block. In GFM, fenced code blocks (```) are preferred.

FAQ

Because it’s the right tradeoff between expressiveness and simplicity. Plain text is easy to write, easy to read, easy to version control (git diff works beautifully), and easy to convert. Every developer can open and edit a .md file in any text editor. The cost of learning Markdown is near-zero.

What’s the difference between Markdown and CommonMark?

The original Markdown spec was informal and ambiguous — different parsers made different choices for edge cases. CommonMark (2014) standardized the syntax with a precise specification and test suite. Most modern Markdown libraries are CommonMark-compliant. GitHub Flavored Markdown extends CommonMark with tables, task lists, strikethrough, and autolinks.

Can Markdown replace HTML?

For content authoring, yes. For web design and layout, no. Markdown produces semantic content (headings, paragraphs, lists, links) but cannot express complex layouts, interactive elements, or precise styling. That’s why every Markdown-to-HTML converter adds CSS and sometimes JavaScript to the output.

How do I add custom CSS to Markdown?

Markdown itself doesn’t support inline styling, but most converters let you add a CSS file that styles the generated HTML. Tools like Astro, Hugo, and MkDocs have built-in theme systems that handle this. You can also use Pandoc’s --css flag or add a <style> block before converting to PDF.

Try it yourself — free, right in your browser

Everything mentioned in this guide runs locally on this site: no upload, no watermark, no sign-up.

Format deep-dives: MD (.md.markdown) , HTML (.html.htm) , RST (.rst)