-
Notifications
You must be signed in to change notification settings - Fork 79
/
about-markdown.md
439 lines (350 loc) · 10.4 KB
/
about-markdown.md
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
---
layout: page
title: "About markdown"
permalink: /about-markdown/
---
You can use markdown to write and format text in GitHub - in Issues, Pull Requests, and markdown files. Here is a list of the most important features.
### Headings
# `#` Heading
## `##` Heading2
### `###` Heading3
### Formatting text
Formatting `**`**bold text**`**`, `_`_italic text_`_` and `***`***bold and italic***`***`.
You can also use `~~`~~strikethrough text~~`~~`.
> `>` This is a quote
>> `>>` This is a nested quote
## Links
https://xpirit.com/
[Link Text](https://xpirit.com)
[Test.pdf](https://github.com/wulfland/AccelerateDevOps/files/8073527/Test.pdf)
### Images
You can drag or drop images to markdown and they will get uploaded automatically.
![octocat](https://user-images.githubusercontent.com/5276337/170288469-b13b7c5c-541c-45e5-990f-f59902f02ab3.png)
#### Size images
Use `img` to set the with of the image:
<img width="200" alt="image" src="https://user-images.githubusercontent.com/5276337/170288469-b13b7c5c-541c-45e5-990f-f59902f02ab3.png">
#### Display images depending on theme:
![Light](https://user-images.githubusercontent.com/5276337/170288469-b13b7c5c-541c-45e5-990f-f59902f02ab3.png#gh-light-mode-only)
![Dark](https://user-images.githubusercontent.com/5276337/170288514-21321111-72b7-4ec2-98e6-b19c9a090721.png#gh-dark-mode-only)
You can now also use `picture` tag:
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/5276337/170288514-21321111-72b7-4ec2-98e6-b19c9a090721.png">
<img src="https://user-images.githubusercontent.com/5276337/170288469-b13b7c5c-541c-45e5-990f-f59902f02ab3.png">
</picture>
### Videos
https://user-images.githubusercontent.com/5276337/154125940-0172902e-da3f-4e6e-a4a4-cab7c6a86cde.mp4
### Lists
- List item 1
- List item 2
1. Item 1
2. Item 2
### Nested lists
1. Root
- First nested item
- Second nested item
### Footnotes
You can user a footnote[^1] in markdown that allows you to jump to it and back using links.
A footnote can have multiple lines[^2].
You can also use words, to fit your writing style more closely[^note].
[^1]: My reference.
[^2]: Every new line should be prefixed with 2 spaces.
This allows you to have a footnote with multiple lines.
[^note]:
Named footnotes will still render with numbers instead of the text but allow easier identification and linking.
This footnote also has been made with a different syntax using 4 spaces for new lines.
### Comments and escaping
<!-- This comment will not appear in the rendered Markdown -->
Use <kbd>\\</kbd> to escape markdown: This text is \*not bold\* and \_not italic\_.
### emojis and keyboard keys
:+1: :shipit: :medal_sports: :-1: :100: :trophy: :house:
<kbd>Ctrl</kbd> <kbd>Enter</kbd> <kbd>Space</kbd> <kbd>Ctrl</kbd>+<kbd>C</kbd>
### Tables
| Left-aligned | Center-aligned | Right-aligned |
| :--- | :---: | ---: |
| **title1** | `git status` | 1.75% |
| **title2** | `git diff` | 2.81% |
| **title3** | `git add` | 3.51% |
### Collapsable sections
<details>
This content is hidden by default and you have to click `Details` to see it.
</details>
<details>
<summary>Details with custom summary</summary>
This content is hidden by default and you have to click `Details with custom summary` to see it.
</details>
### Syntax highlighted code blocks
C#:
```csharp
void WriteHelloWorld(string name)
{
Console.WriteLine("Hello World and {0}!", name);
}
WriteHelloWorld("John Doe");
// writes 'Hello World and Johnm Doe' to STDOUT
```
Ruby:
```ruby
def print_helloWorld(name)
puts "Hello World and #{name}!"
end
print_helloWorld('Jon Doe')
#=> prints 'Hello World and Jon Doe!' to STDOUT.
```
JavaScript:
```javascript
function writeHelloWorld(name) {
console.log(`Hello World and ${name}!`);
}
writeHelloWorld('Jon Doe');
// writes 'Hello World and Jon Doe!' to STDOUT.
```
### Flow Chart
```mermaid
graph RL;
7e536==>96a85;
b7e6b==>7e536;
main-.->b7e6b;
HEAD-->main;
55805==>7e536;
branch-.->55805;
tag-.->55805;
```
### Sequence diagram
```mermaid
sequenceDiagram
participant Me
participant You
Me->>You: Hello, how are you?
loop Self reflection
You->>You: How am I?
end
Note right of You: Say the truth? 🤔
You-->>Me: Great!
```
### Gant Diagram
```mermaid
gantt
dateFormat YYYY-MM-DD
title Preparing conference talk
excludes weekdays 2022-02-16
section Prep
Prepare Slides :done, des1, 2022-02-01,2022-02-15
Prepare Demo :active, des2, 2022-02-17, 3d
section Conference
Talk 1 : des3, after des2, 5d
Talk 2 : des4, after des3, 5d
```
### Class diagram
```mermaid
classDiagram
Truck <|-- Vehicle : specialized
Bike *-- Vehicle
Truck : size()
Vehicle : int Wheels
```
### Mentions
Mention using GitHub handle: @kaufm (only works in Issues and Pull Requests)
### Reference labels
Reference labels in markdown: https://github.com/wulfland/AccelerateDevOps/labels/documentation
### Geo location
```geojson
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [-4.842228, 36.502749]
},
"properties": {
"name": "Kitesurf Zone",
"Conditions": "Poniente, Levante",
"Ratings": "⭐ ⭐ ⭐ ⭐ ⭐ "
}
}
```
### topoJSON
```topojson
{
"type": "Topology",
"objects": {
"data": {
"geometries": [
{
"id": "0",
"type": "Polygon",
"properties": {"name": "abc"},
"bbox": [0.0, 0.0, 1.0, 1.0],
"arcs": [[-2, 0]]
},
{
"id": "1",
"type": "Polygon",
"properties": {"name": "def"},
"bbox": [1.0, 0.0, 2.0, 1.0],
"arcs": [[1, 2]]
}
],
"type": "GeometryCollection"
}
},
"bbox": [0.0, 0.0, 2.0, 1.0],
"arcs": [
[[1.0, 0.0], [0.0, 0.0], [0.0, 1.0], [1.0, 1.0]], [[1.0, 0.0], [1.0, 1.0]],
[[1.0, 1.0], [2.0, 1.0], [2.0, 0.0], [1.0, 0.0]]
]
}
```
### STL 3D rendering
```stl
solid b'STLB ATF 10.13.0.1454 COLOR=&\x83\xe7\xff'
facet normal -0.000000 0.000000 34.810009
outer loop
vertex 50.000000 5.900000 5.900000
vertex 50.000000 0.000000 5.900000
vertex 55.900002 5.900000 5.900000
endloop
endfacet
facet normal 0.000000 0.000000 34.810009
outer loop
vertex 55.900002 5.900000 5.900000
vertex 50.000000 0.000000 5.900000
vertex 55.900002 0.000000 5.900000
endloop
endfacet
facet normal -0.000000 -0.000000 -34.810009
outer loop
vertex 55.900002 5.900000 0.000000
vertex 55.900002 0.000000 0.000000
vertex 50.000000 5.900000 0.000000
endloop
endfacet
facet normal 0.000000 0.000000 -34.810009
outer loop
vertex 50.000000 5.900000 0.000000
vertex 55.900002 0.000000 0.000000
vertex 50.000000 0.000000 0.000000
endloop
endfacet
facet normal 34.810001 -0.000000 0.000000
outer loop
vertex 55.900002 0.000000 5.900000
vertex 55.900002 0.000000 0.000000
vertex 55.900002 5.900000 5.900000
endloop
endfacet
facet normal 34.810001 0.000000 0.000000
outer loop
vertex 55.900002 5.900000 5.900000
vertex 55.900002 0.000000 0.000000
vertex 55.900002 5.900000 0.000000
endloop
endfacet
facet normal 0.000000 -34.810009 0.000000
outer loop
vertex 50.000000 0.000000 5.900000
vertex 50.000000 0.000000 0.000000
vertex 55.900002 0.000000 5.900000
endloop
endfacet
facet normal 0.000000 -34.810009 -0.000000
outer loop
vertex 55.900002 0.000000 5.900000
vertex 50.000000 0.000000 0.000000
vertex 55.900002 0.000000 0.000000
endloop
endfacet
facet normal -34.810001 -0.000000 -0.000000
outer loop
vertex 50.000000 5.900000 5.900000
vertex 50.000000 5.900000 0.000000
vertex 50.000000 0.000000 5.900000
endloop
endfacet
facet normal -34.810001 0.000000 0.000000
outer loop
vertex 50.000000 0.000000 5.900000
vertex 50.000000 5.900000 0.000000
vertex 50.000000 0.000000 0.000000
endloop
endfacet
facet normal 0.000000 34.810009 0.000000
outer loop
vertex 55.900002 5.900000 5.900000
vertex 55.900002 5.900000 0.000000
vertex 50.000000 5.900000 5.900000
endloop
endfacet
facet normal 0.000000 34.810009 0.000000
outer loop
vertex 50.000000 5.900000 5.900000
vertex 55.900002 5.900000 0.000000
vertex 50.000000 5.900000 0.000000
endloop
endfacet
endsolid b'STLB ATF 10.13.0.1454 COLOR=&\x83\xe7\xff'
```
### Past tables and spreadsheets to markdown:
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 15">
<link id=Main-File rel=Main-File
href="file:////Users/mike/Library/Group%20Containers/UBF8T346G9.Office/TemporaryItems/msohtmlclip/clip.htm">
<link rel=File-List
href="file:////Users/mike/Library/Group%20Containers/UBF8T346G9.Office/TemporaryItems/msohtmlclip/clip_filelist.xml">
<style>
<!--table
{mso-displayed-decimal-separator:"\,";
mso-displayed-thousand-separator:"\.";}
@page
{margin:.75in .7in .75in .7in;
mso-header-margin:.3in;
mso-footer-margin:.3in;}
tr
{mso-height-source:auto;}
col
{mso-width-source:auto;}
br
{mso-data-placement:same-cell;}
td
{padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
color:black;
font-size:12.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:Calibri, sans-serif;
mso-font-charset:0;
mso-number-format:General;
text-align:general;
vertical-align:bottom;
border:none;
mso-background-source:auto;
mso-pattern:auto;
mso-protection:locked visible;
white-space:nowrap;
mso-rotate:0;}
-->
</style>
</head>
<body link="#0563C1" vlink="#954F72">
Animal | Color | Amount
-- | -- | --
Tiger | Yellow | 25
Horse | Brown | 7
</body>
</html>
Disable using <kbd>cmd|ctrl</kbd>+<kbd>shift</kbd>+<kbd>v</kbd>:
Animal Color Amount
Tiger Yellow 25
Horse Brown 7
### Render mathematical expressions in Markdown using LaTeX syntax:
**The Cauchy-Schwarz Inequality**
$$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)$$
Render it inline:
This sentence uses `$` delimiters to show math inline: $\sqrt{3x-1}+(1+x)^2$