OSDN Git Service

Regular updates
[twpd/master.git] / markdown.md
1 ---
2 title: Markdown
3 category: Markup
4 layout: 2017/sheet
5 prism_languages: [markdown]
6 updated: 2020-06-24
7 weight: -1
8 ---
9
10 ## Reference
11 {:.-three-column}
12
13 ### Headers
14
15 ```markdown
16 # h1
17 ## h2
18 ### h3
19 ```
20
21 ```markdown
22 Header 1
23 ========
24 ```
25
26 ```markdown
27 Header 2
28 --------
29 ```
30
31 ### Emphasis
32
33 ```markdown
34 *italic*
35 _italic_
36 ```
37
38 ```markdown
39 **bold**
40 __bold__
41 ```
42
43 ```markdown
44 `code`
45 ```
46
47 ### Lists
48
49 ```markdown
50 * Item 1
51 * Item 2
52 ```
53
54 ```markdown
55 - Item 1
56 - Item 2
57 ```
58
59 ```markdown
60 - [ ] Checkbox off
61 - [x] Checkbox on
62 ```
63
64 ### Links
65
66 ```markdown
67 [link](http://google.com)
68 ```
69
70 ```markdown
71 [link][google]
72 [google]: http://google.com
73 ```
74
75 ```markdown
76 <http://google.com>
77 ```
78
79 ### Images
80
81 ```markdown
82 ![Image alt text](/path/to/img.jpg)
83 ![Image alt text](/path/to/img.jpg "title")
84 ![Image alt text][img]
85 ```
86
87 ```markdown
88 [img]: http://foo.com/img.jpg
89 ```
90
91 ### Code
92
93 ```
94     4 space indent
95     makes a code block
96 ```
97
98 ~~~markdown
99 ```
100 code fences
101 ```
102 ~~~
103
104
105 ~~~markdown
106 ```js
107 codeFences.withLanguage()
108 ```
109 ~~~
110
111 ### Blockquotes
112
113 ```markdown
114 > This is
115 > a blockquote
116 >
117 > > Nested
118 > > Blockquote
119 ```
120
121 ### Horizontal line
122
123 ```markdown
124 ----
125 ```
126
127 ```markdown
128 ****
129 ```
130
131 ### Tables
132
133 ```markdown
134 | Column 1 Heading | Column 2 Heading |
135 | ---------------- | ---------------- |
136 | Some content     | Other content    |
137 ```
138
139 ```markdown
140 Column 1 Heading | Column 2 Heading
141 --- | ---
142 Some content | Other content
143 ```