Markdown Features
This page shows every Markdown feature document2 renders, followed by GitHub syntax it does not render yet.
- Headings
- Text
- Lists
- Tables
- Blockquotes
- Links and Images
- Alerts
- Footnotes
- Emoji
- Math
- Mermaid
- Attributes
- Not Rendered Yet
Headings
Heading level 3
Heading level 4
Heading level 5
Heading level 6
A paragraph directly below a heading. Paragraphs are separated by a blank line, and a line break inside a paragraph is joined into the same line.
A line ending with two spaces
breaks here, and a line ending with a backslash
breaks here too.
Text
Text can be bold, italic, bold and italic, struck through, or inline code.
Combine them: bold with code inside and italic with a link.
Special characters are escaped: *not italic*, 5 < 10, and © 2026.
The line above is a horizontal rule. So are the next two.
Lists
Unordered list:
- Apples
- Oranges
- Navel
- Blood
- Moro
- Tarocco
- Bananas
Ordered list:
- Install the package.
- Publish the configuration.
- Run
php artisan vendor:publish. - Edit
config/example.php.
- Run
- Clear the cache.
An ordered list that starts at 5:
- Fifth
- Sixth
Task list:
- Write the documentation
- Add code samples
- Review the design
- Light mode
- Dark mode
A list with paragraphs and code:
-
First step.
This paragraph belongs to the first step.
Shell1php artisan about -
Second step.
Tables
| Left aligned | Centered | Right aligned |
|---|---|---|
string |
yes | 1 |
integer |
no | 1,024 |
boolean |
yes | 65,536 |
A wide table:
| Method | URI | Action | Middleware | Name | Description |
|---|---|---|---|---|---|
| GET | /projects |
ProjectList |
auth |
projects.index |
Lists the projects of the signed-in author with their latest build status. |
| GET | /projects/create |
AddProject |
auth |
projects.create |
Registers a repository as a new project and starts the first build. |
| GET | /projects/{project}/settings |
ProjectSettings |
auth |
projects.settings |
Changes the versions, default document, project name, and custom domain. |
A table with formatting inside cells:
| Feature | Status |
|---|---|
| Search | |
| Versions | Supported, see Installation |
Blockquotes
A blockquote with bold text and a link.
A blockquote with several paragraphs.
The second paragraph.
A nested blockquote.
A blockquote with a list:
- One
- Two
Links and Images
- An inline link: Laravel
- A link with a title: Laravel
- A link to another page in this version: Configuration
- A link to a section on this page: Tables
- A reference link: CommonMark
- An autolink: https://github.com/replworks-bot/document2-test-docs
- An angle-bracket autolink: https://commonmark.org
- An email autolink: hello@example.com
An image:

A linked image:
Alerts
Note
Useful information that users should know.
Tip
Helpful advice for doing things better.
Important
Key information users need to know.
Warning
Urgent info that needs immediate attention.
Caution
Advises about risks or negative outcomes.
An alert with more content:
Tip
Alerts can hold formatting, links, and inline code.
- A list item
- Another item
1Route::get('/', fn () => view('welcome'));
These stay plain blockquotes: a marker followed by text, and an unknown type.
[!NOTE] inline text after the marker
[!UNKNOWN] Unknown type.
Footnotes
Here is a sentence with a footnote.1 A named footnote can hold several paragraphs.2 The first footnote is referenced again here.1
A reference without a definition stays as written: [^missing].
Emoji
Unicode emoji: 🚀 🎉 👍 ❤️ ✨ ✅ ❌ ⚠️ 💡 🇰🇷
GitHub custom emoji:
![]()
Shortcodes next to each other: ❤️🎉
These stay as written: :rocket: in code, x:rocket: after a letter, :ROCKET: in upper case, and :not_an_emoji:.
Math
Inline math \(E = mc^2\), \(\sqrt{3}\) with backticks, and \(a_{ij}\) with braces.
A display block:
\[ \sum_{i=1}^{n} i = \frac{n(n+1)}{2} \]
A math code block:
These stay as written: $5 and $10, the $user variable, a hash $2y$10$abc, and $x$ in code.
Mermaid
A flowchart:
graph LR
Push --> Build --> Publish
Build -->|failed| Log[Build Log]
A sequence diagram:
sequenceDiagram
Author->>GitHub: push
GitHub->>Hub: push event
Hub-->>Author: Site published
Attributes
A paragraph with a class and an id.
A link with a class: Get started
Not Rendered Yet
GitHub renders the syntax below, but document2 does not have the extensions for it yet. It shows how each one appears today.
Collapsed section
Click to expand
Hidden content.
Keyboard keys
Press Ctrl + C to copy.
