OSDN Git Service

Regular updates
[twpd/master.git] / textile.md
1 ---
2 title: Textile
3 category: Markup
4 layout: 2017/sheet
5 updated: 2017-09-20
6 weight: -1
7 ---
8
9 ## Reference
10 {: .-three-column}
11
12 ### Inlines
13
14 | Code | Description |
15 | --- | --- |
16 | `_em_` | |
17 | `*strong*` | |
18 | `__bold-italic__` | |
19 | `@code@` | |
20 | `??citation??` | |
21 | --- | --- |
22 | `-strikethrough-` | |
23 | `+insertion+` | |
24 | --- | --- |
25 | `%span%` | HTML tag |
26 | `%{color:red}formatting%` | CSS styles |
27 | --- | --- |
28
29 ### Blocks
30
31 ```textile
32 h1. Header 1
33 ```
34
35 ```textile
36 h2. Header 2
37 ```
38
39 ```textile
40 bq. Blockquote
41 ```
42
43 ```textile
44 p(classname). Class.
45 ```
46
47 ```textile
48 p(#id). ID.
49 ```
50
51 ### Lists
52
53 ```textile
54 ## ordered list
55 ```
56
57 ```textile
58 * unordered list
59 ```
60
61 ### Links
62
63 | Code | Description |
64 | --- | --- |
65 | `"Hypertext":index.html` | Link |
66 | --- | --- |
67 | `"Text link":link` <br> `[link]http://link.com` | Link via reference |
68
69 ### Images
70
71 | Code | Description |
72 | --- | --- |
73 | `!image.jpg!` | Image |
74 | `!image.jpg(title text)!` | |
75 | `!image.jpg!:link.html` | |
76 | `!>right.jpg!` | |
77
78 ### Escaped HTML
79
80 ```html
81 <pre>
82 I am <b>very serious.</b> -- this
83 will get escaped.
84 </pre>
85 ```
86
87 ### Line breaks
88
89 ```textile
90 Line breaks.
91 Just break the lines.
92 ```
93
94 ### Entities
95
96 ```textile
97 one(TM), two(R), three(C).
98 ```
99
100 ### Horizontal line
101
102 ```textile
103 --
104 ```
105
106 ### Footnotes
107
108 ```textile
109 Footnotes[1].
110 ```
111
112 ```textile
113 fn1. Something.
114 ```