Markdown Formatting Guide: Write Better Documentation
Master Markdown syntax for README files, documentation, notes, and web content.
Markdown is a lightweight markup language that converts plain text into formatted content. It is the standard for README files, documentation, notes, and many content management systems.
Basic Text Formatting
Headings
Use # symbols for headings. One # for H1, two ## for H2, and so on up to six levels.
Emphasis
- italic or italic for italic text
- bold or bold for bold text
- bold italic for both
strikethroughfor crossed-out text
Lists
Unordered lists use -, *, or + at the beginning of each line. Ordered lists use numbers followed by periods.
Links and Images
- Links: text
- Images:
- Reference links: [text][ref] with [ref]: url defined elsewhere
Code
Inline code uses single backticks. Code blocks use triple backticks with an optional language identifier for syntax highlighting.
Tables
Tables use pipes | and dashes - to create columns and rows. Alignment is controlled with colons in the separator row.
Blockquotes
Prefix lines with > to create blockquotes. Multiple > symbols create nested quotes.
Best Practices
- Keep line lengths reasonable (80-120 characters)
- Use blank lines between different elements
- Be consistent with your formatting choices
- Use reference-style links for frequently used URLs
- Preview your Markdown before publishing
Need text tools?
Try our free online text tools for instant results.