-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmarkdown-cheatsheet.html
More file actions
171 lines (157 loc) · 3.3 KB
/
markdown-cheatsheet.html
File metadata and controls
171 lines (157 loc) · 3.3 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Markdown Cheat Sheet</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 20px;
color: #333;
}
h1,
h2 {
color: #007bff;
}
h1 {
border-bottom: 2px solid #007bff;
padding-bottom: 10px;
}
pre {
background: #f9f9f9;
border: 1px solid #ddd;
border-radius: 4px;
padding: 10px;
overflow-x: auto;
}
code {
background: #f4f4f4;
padding: 2px 4px;
border-radius: 4px;
}
.section {
margin-bottom: 2rem;
}
ul {
margin-left: 20px;
}
</style>
</head>
<body>
<h1>Markdown Cheat Sheet</h1>
<p>
Your comprehensive guide to writing Markdown, including advanced features.
</p>
<div class="section">
<h2>1. Headings</h2>
<p>
Use <code>#</code> for headings. The number of <code>#</code> determines
the heading level (1-6).
</p>
<pre>
# Heading 1
## Heading 2
### Heading 3</pre
>
</div>
<div class="section">
<h2>2. Text Formatting</h2>
<ul>
<li><code>**Bold**</code>: <b>Bold</b></li>
<li><code>*Italic*</code>: <i>Italic</i></li>
<li><code>~~Strikethrough~~</code>: <del>Strikethrough</del></li>
</ul>
<pre>**Bold** *Italic* ~~Strikethrough~~</pre>
</div>
<div class="section">
<h2>3. Lists</h2>
<h3>Unordered List</h3>
<pre>
- Item 1
- Item 2
- Subitem 2.1</pre
>
<h3>Ordered List</h3>
<pre>
1. Item 1
2. Item 2
1. Subitem 2.1</pre
>
</div>
<div class="section">
<h2>4. Links and Images</h2>
<h3>Links</h3>
<p>Use <code>[Text](URL)</code>.</p>
<pre>[GitHub](https://github.com)</pre>
<h3>Images</h3>
<p>Use <code></code>.</p>
<pre></pre>
</div>
<div class="section">
<h2>5. Code</h2>
<h3>Inline Code</h3>
<pre>`Inline code example`</pre>
<h3>Code Block</h3>
<pre>```html
<div>Hello, Markdown!</div>
```</pre>
</div>
<div class="section">
<h2>6. Blockquotes</h2>
<pre>
> This is a blockquote.
>> It can span multiple lines.</pre
>
</div>
<div class="section">
<h2>7. Horizontal Rule</h2>
<p>Use <code>---</code>, <code>***</code>, or <code>___</code>.</p>
<pre>---</pre>
</div>
<div class="section">
<h2>8. Tables</h2>
<pre>
| Header 1 | Header 2 |
|----------|----------|
| Row 1 | Data |
| Row 2 | Data |</pre
>
</div>
<div class="section">
<h2>9. Task Lists</h2>
<pre>
- [x] Completed Task
- [ ] Incomplete Task</pre
>
</div>
<div class="section">
<h2>10. Footnotes</h2>
<p>Use <code>[^1]</code> for inline footnotes.</p>
<pre>
Here is a sentence with a footnote.[^1]
[^1]: This is the footnote text.</pre
>
</div>
<div class="section">
<h2>11. Emojis</h2>
<p>Use emoji shortcodes like <code>:smile:</code>.</p>
<pre>I :heart: Markdown! :smile:</pre>
</div>
<div class="section">
<h2>12. Collapsible Sections</h2>
<pre><details>
<summary>Click to expand</summary>
Hidden content here.
</details></pre>
</div>
<div class="section">
<h2>13. Inline HTML</h2>
<pre><b>Bold Text</b> and <i>Italic Text</i>.</pre>
</div>
</body>
</html>