Markdown Cheat Sheet
Important: Different types of Mashery pages have different editing properties. Static pages and documentation can take HTML, while the Wiki cannot accept HTML but can accept Markdown.
Headers
| Markdown Input | Output |
|---|---|
|
Level 1 Header (H1)Level 2 Header (H2)Level 5 Header (H5) |
Paragraphs
| Markdown Input | Output |
|---|---|
|
One or more consecutive lines of text separated by one or more blank lines. This is another paragraph. |
| Line Break
To create a line break, end a line in a paragraph with two or more spaces.
|
I am a sentence with |
Lists
| Markdown Input | Output |
|---|---|
| Unordered lists
Asterisks, plus signs or dashes:
|
|
Ordered lists
|
|
Definition lists
Multiple definitions
Multiple terms
|
|
Emphasis
| Markdown Input | Output |
|---|---|
Italic (em tag)
|
I am emphasized I am emphasized |
Bold (strong tag)
|
I am bold I am bold |
Links
| Markdown Input | Output |
|---|---|
Inline Method
|
This is an example inline link. |
| Reference Method
The reference method has two parts: The link definition and the link itself. The link definition may be placed anywhere on the page and it will not show up on the page itself.
If you don't define an id in the link, like this: |
This is an example reference-method link. |
Automatic Links
|
Code Blocks
| Markdown Input | Output |
|---|---|
|
Indent with 4 spaces.
|
This is a normal paragraph.
|
Tables
| Markdown Input | Output | ||||||
|---|---|---|---|---|---|---|---|
|
|
Image Call
| Markdown Input | Output |
|---|---|
|
Literal Characters
The following characters sometimes have special meanings in Markdown. You can make sure Markdown doesn't interpret these characters by placing a backslash in front of them.
- \ backslash
- ` backtick
- * asterisk
- _ underscore
- {} curly braces
- [] square brackets
- () parentheses
- # hash mark
- + plus sign
- - minus sign (hyphen)
- . dot
- ! exclamation mark
- : colon
- | pipe
| Markdown Input | Output |
|---|---|
|
\ ` * _ {} [] () # + - . ! : | |
Docs Navigation
- Support Documentation Portal
- Mashery API Documentation
- Tips and Tricks
- Customizing Your Portal
- API Proxy Service
- mashery api reporting
3 Comments
Steve CP – 5 months ago
in forums pages it says your enhanced markdown supports the triple ` for code blocks but that doesn't seem to work. On this page it doesn't mention the backtick for code either. So either the parser is broken in the forums or the doc is not working somewhere.
I got it to work with 4 spaces but that is a pain for large code blocks. Thanks Steve
Michael Squires – 5 months ago
Hey Steve,
Make sure that your triple ticks are either followed by a valid language (c, php, java), and not followed with actual code. Basically, all new code should be directly underneath the triple ticks. Example:
kimba88 – 3 months ago
enter your follower name:
Please sign in to post a comment.