Markdown syntax: Difference between revisions
From wikinotes
(→Links) |
|||
Line 49: | Line 49: | ||
<blockquote> | <blockquote> | ||
Unordered lists can be defined with <code>*</code>, <code>+</code>, or <code>-</code>. | Unordered lists can be defined with <code>*</code>, <code>+</code>, or <code>-</code>. | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="md"> | ||
* red | * red | ||
+ yellow | + yellow | ||
Line 56: | Line 56: | ||
Ordered lists use numbers with periods. | Ordered lists use numbers with periods. | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="md"> | ||
1. one | 1. one | ||
2. two | 2. two |
Revision as of 13:26, 19 September 2021
These notes are based on the base markdown spec.
Parsers may introduce additional features.
Documentation
official docs https://daringfireball.net/projects/markdown/syntax
Syntax
Headers
Headers can be defined using hash prefix, or underlines.
# Header 1 ## Header 2 ### Header 3 Header 1 ======== Header 2 --------For underlines, the character matters
=
for header-1-
for header-2Links
Cross-References (same-page links)
See [Official Docs][docs] ## Official Documentation [docs]Lists
List Types
Unordered lists can be defined with
*
,+
, or-
.* red + yellow - blueOrdered lists use numbers with periods.
1. one 2. two 3. threeList Items
# Lists support hanging indents * a very long list item, separated across multiple lines