Markdown syntax: Difference between revisions

From wikinotes
(Created page with "These notes are based on the base markdown spec.<br> Parsers may introduce additional features. = Documentation = <blockquote> {| class="wikitable" |- | official docs || http...")
 
Line 15: Line 15:
== Headers ==
== Headers ==
<blockquote>
<blockquote>
Headers defined using hash prefix
Headers can be defined using hash prefix, or underlines.
<syntaxhighlight lang="markdown">
<syntaxhighlight lang="markdown">
# Header 1
# Header 1
## Header 2
## Header 2
### Header 3
### Header 3
</syntaxhighlight>


Headers can also be defined with underlines.
* <code>=</code> for header-1
* <code>-</code> for header-2
<syntaxhighlight lang="markdown">
Header 1
Header 1
========
========
Line 32: Line 27:
--------
--------
</syntaxhighlight>
</syntaxhighlight>
For underlines, the character matters
* <code>=</code> for header-1
* <code>-</code> for header-2
</blockquote><!-- Headers -->
</blockquote><!-- Headers -->



Revision as of 13:25, 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-2

Links

Cross-References (same-page links)

See [Official Docs][docs]

## Official Documentation [docs]

Lists

List Types

Unordered lists can be defined with *, +, or -.

* red
+ yellow
- blue

Ordered lists use numbers with periods.

1. one
2. two
3. three

List Items

# Lists support hanging indents
* a very long list item,
  separated across multiple
  lines