Markdown cheat sheet

Markdown is a way to write formatted text with plain characters. This cheat sheet covers the syntax you will use most, and you can try each line in the Markdown Preview.

By 孤獨的時空旅人 · Updated 2026-10-16

Headings and emphasis

Start a line with # for a main heading, ## for a section and ### for a sub-section. Wrap text in two asterisks for bold, one asterisk for italics and two tildes for strikethrough. Leave a blank line between paragraphs; a single line break inside a paragraph does not start a new one.

Lists and quotes

Start lines with - or * for a bulleted list and with 1. for a numbered list; indent two or four spaces to nest. Start a line with [ ] or [x] after the dash for a task list item. A line that starts with > becomes a block quote.

Links and images

A link is the text in square brackets followed by the address in round brackets. An image is the same with an exclamation mark in front, and the square brackets hold the alternative text. Always write a short alternative text so the image makes sense to screen readers.

Code and tables

Wrap a short piece of code in single backticks. For several lines, put three backticks on their own line before and after the code. A table uses vertical bars between columns and a row of dashes under the header row, as in “| Name | Score |” then “| --- | --- |”.

Preview and export

The preview shows how your text will look. Copy the HTML to use it on a web page, or download it as a standalone page; scripts and form elements are removed from the output for safety. Print the downloaded page to save a PDF. Your text stays in your browser.

Tools used in this guide

Frequently asked questions

Which Markdown flavour does the preview use?

GitHub-flavoured Markdown, including tables, task lists and strikethrough.

Why does my line break not show?

Leave a blank line between paragraphs. A single line break inside a paragraph is joined to the previous line.

Can I paste the HTML on my website?

Yes, but review it first. Scripts, forms and event handlers are removed.

Is my text uploaded?

No. It is rendered in your browser and not saved.

Guides

How to reduce PDF file sizeA PDF that is too big to email or upload is almost always big because of images. Here is how to make it smaller without breaking it.PDF to Word: why formatting changes and what to doConverting a PDF back into an editable document is useful, but it is rarely perfect. Knowing why helps you pick the fastest route to a usable file.How to combine photos or phone scans into one PDFReceipts, IDs, homework or signed forms — here is a clean way to turn several photos into a single PDF that is easy to send.iPhone HEIC photos: how to convert them to JPGiPhones save photos as HEIC to save space. That is great on the phone, but many websites, Windows apps and forms still expect JPG. Here is what to do.Simplified to Traditional Chinese: characters vs vocabularyConverting Chinese between Simplified and Traditional looks like a character swap, but good results depend on context and on the region your readers live in.How mortgage payments are calculatedYour monthly payment depends on three numbers: the loan amount, the interest rate and the term. Small changes in any of them add up to large differences over 30 years.Compound interest explained with real numbersCompound interest means your returns earn returns. The formula is simple; what surprises most people is how much time matters.How to add subtitles to a video (burn in an SRT or script)Subtitles help people watching on mute, in noisy places or in a second language. This guide shows the quickest way to put them on a video without uploading it anywhere.Recording or audio to sheet music: how it works and how to get a good draftYou can sing, hum or play into your microphone and get a staff to edit and export. It is a rough draft made in your browser, so a few habits make it much better.How to count the days between two datesCounting days looks easy until you have to decide whether the last day counts. Here are the rules that decide the answer, with examples you can check in the Date Calculator.How to make a meme without a watermarkA meme is an image plus a short line of text. You can make one in your browser in under a minute, with no watermark and no sign-up. This guide covers the two common layouts and a few habits that make memes readable.YouTube channel logo: size, shape and design tipsYour channel icon appears as a tiny circle next to every video, comment and search result. A few size and design rules decide whether it looks clear or muddy.Fix garbled Chinese when opening a CSV in ExcelA CSV file is plain text, and Excel has to guess which encoding it uses. When it guesses wrong, Chinese, Japanese or accented characters turn into nonsense. Here is why, and how to fix it.How to extract text from an image with OCROCR (optical character recognition) reads the letters in a picture and gives you text you can copy. Results depend a lot on the picture, so a few habits help.How to make a word cloud from textA word cloud shows the words that appear most often in a text, with bigger words for higher counts. It is quick to make, but a few choices decide whether it is useful or just decoration.How to compress an audio fileAudio file size depends mostly on bitrate and length. Choosing a sensible bitrate can shrink a file by 90% or more with little audible difference. Here is how to pick one.How to adjust a photo's colors and apply filtersMost photos improve with a few small adjustments. Working in a sensible order and comparing with the original keeps the result natural.