-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarkdown.html
188 lines (154 loc) · 4.36 KB
/
markdown.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<html>
<head>
<!-- makes browser more consistent -->
<link rel="stylesheet" href="css/normalize.css">
<!-- necessary for rainbow js -->
<link rel="stylesheet" href="css/solarized-light.css">
<!-- cheatsheet specific stylesheets -->
<link rel="stylesheet" href="css/cheatsheet.css">
</head>
<body>
<h1>Markdown</h1>
<div class="container">
<article>
<h2>Basics</h2>
<h3>Paragraphs</h3>
<p>Paragraph are separated by blank lines:
<code class="multiline">Paragrah1
Paragraph2</code></p>
<h3>Headers</h3>
<p><code class="multiline"># H1
## H2
### H3
#### H4
##### H5
###### H6</code>
or
<code class="multiline">H1
======
H2
------</code></p>
<h3>Text Elements</h3>
<dl>
<dt><code>*text*</code> or <code>_text_</code></dt>
<dd>Italic: <i>text</i></dd>
<dt><code>**text**</code> or <code>__text__</code></dt>
<dd>Bold: <b>text</b></dd>
<dt><code>~~text~~</code></dt>
<dd>Strikethrough: <s>text</s></dd>
<dt><code>---</code> (three or more)</dt>
<dd>Horizontal line</dd>
<dt><code>\*literal asterisks\*</code>
<dd>Use backslash to escape Markdown commands</dd>
</dl>
</article>
<article>
<h2>Lists</h2>
<h3>Unordered lists</h3>
<p>
<code class="multiline">* Red
* Green
* Blue</code>
or
<code class="multiline">+ Red
+ Green
+ Blue</code>
or
<code class="multiline">- Red
- Green
- Blue</code>
</p>
<h3>Ordered lists</h3>
<p>
<code class="multiline">1. Bird
2. McHale
3. Parish</code>
or (for the lazy)
<code class="multiline">1. Bird
1. McHale
1. Parish</code>
</p>
<h3>Ordered lists</h3>
<p>Must be indented by a tab or four spaces:
<code class="multiline">- Colour
- Red
- Blue
- Animal
- Dog
- Cat</code></p>
</article>
<article>
<h2>Links</h2>
<p>Inline:
<ul>
<li><code>[Example with title](http://example.com/ "Optional Title")</code></li>
<li><code>[Example link](http://example.net/)</code></li>
</ul>
</p>
<p>Reference:
<ul>
<li>Link: <code>This is [an example] [id] referencence-style link.</code></li>
<li>Reference: <code>[id]: http://example.com/ "Optional Title Here"</code></li>
</ul>
</p>
<p>Implicit reference:
<ul>
<li>Link: <code>[Google][]</code></li>
<li>Reference: <code>[Google]: http://google.com/</code></li>
</ul>
</p>
<p>Automatic link:
<ul>
<li><code><http://example.com/></code></li>
<li><code><[email protected]/></code></li>
</ul>
</p>
</article>
<article>
<h2>Blocks</h2>
<h3>Quotes</h3>
<p><code class="multiline">>This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
> consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
> Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
>
> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
> id sem consectetuer libero luctus adipiscing.</code>
or
<code class="multiline">> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.</code>
</p>
<h3>Code</h3>
<p><code class="multiline">This is a normal paragraph:
This is a code block.</code></p>
</article>
<article>
<h2>Images</h2>
<p>Inline:
<ul>
<li><code>![Alt text](/path/to/img.jpg)</code></li>
<li><code>![Alt text](/path/to/img.jpg "Optional title")</code></li>
</ul>
</p>
<p>Reference:
<ul>
<li>Link: <code>![Alt text][id]</code></li>
<li>Reference: <code>[id]: url/to/image "Optional title attribute"</code></li>
</ul>
</p>
</article>
<article>
<h2>More Information</h2>
<ul>
<li>Full description: <a href="http://daringfireball.net/projects/markdown/">http://daringfireball.net/projects/markdown/</a></li>
<li>Online converter: <a href="http://daringfireball.net/projects/markdown/dingus">http://daringfireball.net/projects/markdown/dingus</a></li>
</ul>
</article>
</div>
<!-- syntax highlighting -->
<script src="js\cheatsheet.js"></script>
<script src="js\rainbow-custom.min.js"></script>
</body>
</html>