Skip to content

What is Markdown?

Markdown is a way of writing formatted text with ordinary characters: two asterisks around a word make it bold, a hash at the start of a line makes a heading, a dash makes a list item. Such a file reads comfortably even in Notepad, and any program that knows Markdown shows it as a neatly formatted document.

In short

  • Markdown is plain text with agreed marks: **bold**, # Heading, - list item.
  • You meet it in GitHub READMEs, notes, documentation, forums and AI chat answers.
  • The asterisks and hashes you get when pasting a chat answer into Word are Markdown that was not turned into formatting.

Notes with underlines

When writing notes by hand, everyone has their own marks: they underline something twice when it matters, put dashes before list items and write titles in bigger letters. Anyone glancing at such a notebook understands what is what - no legend needed.

Markdown is those same marks, written down and shared by everyone. So a text is readable by a person even in its raw form, and a program knows how to turn it into headings, lists and bold.

The basics in five minutes

# Main heading
## Subheading

An ordinary paragraph. A **bold** word, an *italic* word
and `code in a sentence`.

- a list item
- another item

1. first step
2. second step

[a link to the blog](https://bwrite.pl)

> a quote

And a table, which most programs understand these days:

| Product  | Price |
|----------|-------|
| Laptop   | 4999  |
| Mouse    | 89    |

That covers 90% of texts. A bigger block of code goes between three backticks (```) - which is exactly how the examples on this blog are written before they reach WordPress.

Where you meet it

  • GitHub and GitLab - the README.md file, change descriptions, comments. The .md extension says the file holds Markdown.
  • Notes - Obsidian, Joplin, Notion and many others save or accept Markdown. Notes kept as plain text files outlive any app.
  • Documentation - most developer documentation is written in Markdown, and a generator turns it into a website.
  • Messengers and forums - Discord, Slack, Reddit and Teams understand at least bold, lists and code.
  • AI chats - language models answer in Markdown. The chat window renders it, so you see neat headings and lists.

Why are there asterisks in Word?

You copy an answer from a chat, paste it into Word or an email, and it is full of ** and ##. That is not the chat's fault but raw Markdown: depending on how you copy, the clipboard gets either formatted text or its source. Your editor does not understand Markdown, so it shows the marks literally.

The easiest fix is the chat's own "copy" button, or pasting the text into the AI text cleaner in Tools. It turns Markdown into plain text, or into properly formatted text for Word, and tables into ones you can paste into Excel. Along the way it removes the usual AI traces, such as long dashes.

Flavours

Markdown was created in 2004, and several "dialects" have appeared since. The basics are the same everywhere; the extras differ: tables, task lists (- [ ] to do), footnotes. The most popular are CommonMark (a unified specification) and GitHub Flavored Markdown, which is CommonMark plus tables and task lists. When something does not display the way it should, the dialect is usually to blame.

When it matters to you

  • You paste AI chat answers - now you know where the asterisks come from and how to get rid of them.
  • You write code - READMEs, documentation and pull request descriptions are Markdown. A good README is a project's calling card.
  • You take notes - Markdown notes are plain text files you will still open in 20 years, in any program.
  • You write prompts - Markdown headings and lists help structure a long instruction for a chat (more in What is a prompt?).

HTML, JSON and CSV, README, file extension, LLM.

Advertisement