Markdown is a way to describe document structure using plain text. A line beginning with # is a heading; - starts a list item; **text** marks strong emphasis. A Markdown renderer reads these conventions and produces formatted output, usually HTML.
John Gruber released Markdown in 2004 with help from Aaron Swartz. His original project description explains its aim: readable source text that can be converted to structured HTML. A file ending in .md commonly contains this text, although a filename alone does not verify a file's contents.
Create a small document
Paste this into the homepage editor:
# Team notes
## Decision
Keep the original **Markdown source**.
- Review the draft
- Save a local copy
Read the [project page](https://example.com/project).
> The exported file is separate from the source.The preview should show a title, a section heading, a paragraph with emphasis, a list, a link, and a quotation. Edit the words inside the markers, then compare the source and result. The markers describe structure; they are not characters you must remove before saving.
The syntax to learn first
| You want | Write | Check |
|---|---|---|
| Heading | ## Decision |
Leave a space after the hashes |
| Paragraph | Two blocks separated by a blank line | A single newline may stay in one paragraph |
| Emphasis | *note* or **required** |
Keep spaces outside the markers |
| List | - Review on its own line |
Indentation determines nesting |
| Link | [project](https://example.com) |
Put the URL in parentheses |
| Inline code | `filename.md` |
Backticks display syntax literally |
| Quote | > A quoted paragraph |
Keep the prefix for additional quoted paragraphs |
For a code block, put three backticks on a separate line before and after the code. Add a language name after the opening fence when the destination supports syntax highlighting. The cheat sheet provides copyable examples.
Why two previews can differ
Markdown is a family of implementations rather than one universal application. CommonMark specifies core behavior. GitHub Flavored Markdown extends it with tables, task lists, strikethrough, and additional autolinks. Math, Mermaid diagrams, footnotes, and platform alerts need further support.
A GFM-capable viewer does not reproduce every GitHub feature or stylesheet. MD File Viewer removes raw HTML from user input, so an HTML underline tag can disappear even when a destination such as GitHub allows it. Check the underline compatibility guide, and always inspect your final publishing platform.
Save the source and choose an output
Keep a local .md file if you want to edit the document later. Saving only a screenshot or PDF does not retain the original Markdown structure. To open an existing source, use the MD opener.
Choose HTML for a web page or CMS, Word for an editable handoff, or PDF for a visual fixed-page copy. Review the exported file: the current direct PDF download is image based, while Word keeps many text elements editable but leaves Mermaid as code and dollar-delimited math as literal source rather than Word equations.
Common first mistakes
A heading stays plain text. Write # Title, including the space, and keep it outside a code block.
Two source lines become one paragraph. Use a blank line for a new paragraph. For an intentional line break inside a paragraph, use two trailing spaces or a backslash at the end of the line.
A local picture is missing. Importing a .md file does not import the rest of its folder. Relative image paths need the surrounding project files at the publishing destination.
A preview seems private because it runs locally. The document is parsed in the browser, but remote images may contact their hosts. The homepage editor also retains a draft in this browser's local storage. Review the privacy policy and use an approved local workflow for documents with special handling requirements.
Practice by changing one part of the example at a time, checking the preview, and saving the source. This makes a formatting problem easier to locate than rewriting a whole document at once.
Try it in your browser
Open the homepage editor to view, edit, and download Markdown without installing an application.
More articles
What Is an .md File? How to Open, Edit, and Convert .md Files
New to .md files? Learn what an .md file is, which programs open it, how to edit and convert Markdown files, and what to check before sharing an exported document.
GitHub Flavored Markdown: Syntax, Extensions, and Preview Limits
Use GFM tables, task lists, strikethrough, and autolinks, and distinguish the formal syntax from GitHub-specific rendering and security behavior.
Markdown Blockquotes: How to Quote Text (and Nest Content)
Write Markdown blockquotes with clear examples for multiple paragraphs, nested quotes, code, and GitHub alerts. Fix common quote formatting mistakes.
How to Bold, Italicize, and Strikethrough Text in Markdown
Learn Markdown text formatting — how to bold, italicize, strikethrough, and combine emphasis. Clear syntax examples for bold and italic text in Markdown, with common mistakes to avoid.