Advanced Syntax in Markdown
Horizontal Rules
To create horizontal rule on your page, add 3 or more hyphens --- - - -, arterisks *** * * *, or underscores ___ _ _ _ in a single line. These will produce identical horizontal line.
Markdown syntax:
Rendered output:
Line Breaks
In some tools enter doesn’t automatically break your line. To create line break in Markdown you can use double spaces at the end of your line text.
Example:
With double spaces at the end of the first line:
The rendered output:
First line
Second line
Tables
To produce tables in your page I will separate into 3 explanation:
- Create rows header
Use pipes|to separate each column header. The example will be:
- Create each column’s header
Add three or more hyphens---within pipes|below the rows header.
- Followed the rest of content inside pipes
|within the pipes.
The complete format would be:
The rendered output:
| Title | Descriptions |
|---|---|
| Topic | Paragraph |
Alerts/Admonitions/Callouts
Majority of Markdown applications don’t support this syntax. You can use this syntax of tools that support GitHub-Flavored Markdown (GFM) Alerts. There are 5 types of alerts available and commonly used. To create alerts on markdown in GFM supported tools, starting with greater-than symbol > to create blockquotes, followed by the alert type in a set of square brackets with a single exclamation mark [!].
The format is:
The common types of alert available including:
NOTE: Callout information audiences should know.
TIP: Callout helful advice for audiences.
IMPORTANT: Crucial information for audiences.
WARNING: Callout problems should avoid by the audiences.
CAUTION: Potential negative outcomes or risks about actions audiences should know.
Rendered output example:
*Note: The display of alert will depends on the Markdown platform or tool you are using.
NOTE:
Note
This is note.
TIP:
Tip
This is tip.
IMPORTANT:
Important
This is important key information.
WARNING:
Warning
This is warning.
CAUTION:
Caution
This is caution.
See Markdown-supported tools for more information about the tools or platforms you may use for markdown best practice.