Features
Parsedown is an efficient, modern PHP implementation of Markdown syntax originally developed by John Gruber.
- No Dependencies
- Super Fast
- Extensible
- GitHub flavored
Why Parsedown? It's faster, more consistent and is being actively developed. https://github.com/erusev/parsedown https://github.com/parsedown/parsedown
Parsedown passes most CommonMark tests. The tests that fail are more unusual cases. However, as CommonMark continues to evolve, compliance should improve.
Markdown syntax
Headers (Setext)
This is an H1
This is an H2
Headers (atx)
This is an H1
This is a H2
This is a H6
This is a H1
This is a H2
This is a H3
Quotes
This is a two paragraph quote. The customer should be very satisfied, consectetuer adipiscing elit. I have decided to a policeman. Vestibulum enim visi, viverra nec, fringilla in, laoreet vitae, risus.
Until then, it will be fun. Some people always want to be very happy. Suspendisse id sem consectetuer libero luctus adipiscing.
This is a two paragraph quote It is important to have good customer service, a customer service provider. I decided to use a policeman. For the vestibule, we saw: Viverra nec, Fringilla in, Laoreet vitae, Risus.
Until it's fun to play. Some people always want to be very happy. Suspendisse id sem consectetuer libero luctus adipiscing.
Today is the first day Quote level.
This is a nested quote
Back to the first level
This is a headline
- this is the first list item.
- this is the second list item
Here is a small example code:
return shell_exec("echo $input | $Markdown_script");
Lists
- Red
- Green
- Blue
- Red
- green
- Blue
- red
- green
- blue
- dog
- cat
- mouse
-
Lorem ipsum dolor let amet, consectetuer adipiscing elit. I decided to use a policeman. For the vestibule we have seen: Viverra nec, Fringilla in, Laoreet vitae, Risus.
-
Until it's fun to play. Some people always want to be very happy. Suspendisse id sem consectetuer libero luctus adipiscing.
-
Warsteiner
-
King
-
Warsteiner 2
-
King 2
- This is a list item with two paragraphs. It is important to, to have good customer service, a customer service provider. I decided to, to use a policeman.
For the vestibule, we saw: Viverra nec, Fringilla in, Laoreet vitae, Risus. Until then, it will be fun. Some people always want to be very happy.
- Suspendisse id sem consectetuer libero luctus adipiscing.
- This is a two-paragraph list item.
This is the second paragraph in this list item. Only the first line must be indented It is important to have good customer service, a customer service provider.
-
Another item in the same list.
-
A list item with a quote:
This is a quote In a list.
-
A list item with a code example:
Code blocks
This is a normal paragraph.
The tag is a code block.
An example in AppleScript:
tell application "Foo"
beep
end tell
Simple tables
| First Header | Second Header |
|---|---|
| Content Cell | Content Cell |
| Content Cell | Content Cell |
| First Header | Second Header |
|---|---|
| Content Cell | Content Cell |
| Content Cell | Content Cell |
A colon at the left of the separator line will make the column left-aligned. A colon on the right of the line will make the column right-aligned. Colons at both side means the column is center-aligned.
| Item | Value |
|---|---|
| Computer | $1600 |
| Phone | $12 |
| Pipe | $1 |
Tables with preformatted cells
| One | Two |
|---|---|
One |
Two |
| One | Two |
|---|---|
| One | Two |
| One | Two |
|---|---|
Only partially preformatted |
Two |
| One | Two |
|---|---|
Only partially preformatted but twice |
Two |
| One | Two |
|---|---|
One |
Two |
| One | Two | Three |
|---|---|---|
One |
Two | Three |
| One | Two |
|---|---|
Only partially preformatted |
Two |
| One | Two | Three |
|---|---|---|
| One | Two |
Three |
Links
This is an example for an inline link. an inline link.
This link has no title attribute
There is more information on the About me page.
This is an example for a reference link
Automatic links
emphasis
Single asterisk
Single underline
Double asterisks
double underlines
LordGodsacrament
This text is enclosed by asterisks.
italics, bold and bold italics or italic, bold and bold italic
Code
Use the printf() function to output text
Somewhere here (`) a backtick is hidden.
Nobody uses <blink> tags
Graphics
Images
Inline image syntax looks like this:
![]()
![]()
Backslash masking
Surrounded by asterisks
Bulleted lists nested in a numbered list
- fruit
- Apple
- Banana
- vegetable
- carrot
- broccoli
Horizontal Rules
1
2
3
4
License
The MIT License (MIT)
Copyright (c) 2013-2018 Emanuil Rusev, erusev.com Copyright (c) 2025 Parsedown Community, https://github.com/orgs/parsedown/people
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.