text-formatting.adoc 3.66 KB
Newer Older
heywon.choi's avatar
heywon.choi committed
1 2
= Text Formatting
Gildong Hong <email1@bwg.com>
heywon.choi's avatar
heywon.choi committed
3
:description: The document's description. This document is about the text formatting.
4
include::ROOT:common_attrs.adoc[]
heywon.choi's avatar
heywon.choi committed
5 6 7 8 9 10 11 12 13

[abstract]
.문서개요
--
This document has a header that specifies the {doctitle}.
This document is about the text formatting.
--

== 굵게 (*)
heywon.choi's avatar
heywon.choi committed
14 15 16 17 18
----
A bold *word*, and a bold *phrase of text*.
Bold c**hara**cter**s** within a word.
----
====
heywon.choi's avatar
heywon.choi committed
19 20
A bold *word*, and a bold *phrase of text*.
Bold c**hara**cter**s** within a word.
heywon.choi's avatar
heywon.choi committed
21
====
heywon.choi's avatar
heywon.choi committed
22 23

== 기울임체 (_)
heywon.choi's avatar
heywon.choi committed
24 25 26 27 28
----
An italic _word_, and an italic _phrase of text_.
Italic c__hara__cter__s__ within a word.
----
====
heywon.choi's avatar
heywon.choi committed
29 30
An italic _word_, and an italic _phrase of text_.
Italic c__hara__cter__s__ within a word.
heywon.choi's avatar
heywon.choi committed
31
====
heywon.choi's avatar
heywon.choi committed
32 33

== 고정 폭 (`)
heywon.choi's avatar
heywon.choi committed
34 35 36 37 38 39 40
----
"`Wait!`" Indigo plucked a small vial from her desk's top drawer
and held it toward us.
The vial's label read: `E=mc^2^`; the `E` represents _energy_,
but also pure _genius!_
----
====
heywon.choi's avatar
heywon.choi committed
41 42 43 44
"`Wait!`" Indigo plucked a small vial from her desk's top drawer
and held it toward us.
The vial's label read: `E=mc^2^`; the `E` represents _energy_,
but also pure _genius!_
heywon.choi's avatar
heywon.choi committed
45
====
heywon.choi's avatar
heywon.choi committed
46 47

== 강조 표시 (#)
heywon.choi's avatar
heywon.choi committed
48
----
heywon.choi's avatar
heywon.choi committed
49
Mark my words, #automation is essential#.
heywon.choi's avatar
heywon.choi committed
50 51 52 53 54 55
Mark my words, auto##ma##tion is essential.
----
====
Mark my words, #automation is essential#.
Mark my words, auto##ma##tion is essential.
====
heywon.choi's avatar
heywon.choi committed
56 57

== 스타일 구문 ([.]#)
heywon.choi's avatar
heywon.choi committed
58 59 60 61 62
----
Do werewolves believe in [.small]#small print#?
[.big]##O##nce upon an infinite loop.
----
====
heywon.choi's avatar
heywon.choi committed
63 64
Do werewolves believe in [.small]#small print#?
[.big]##O##nce upon an infinite loop.
heywon.choi's avatar
heywon.choi committed
65
====
heywon.choi's avatar
heywon.choi committed
66 67

=== Text with custom role
heywon.choi's avatar
heywon.choi committed
68
....
heywon.choi's avatar
heywon.choi committed
69 70 71 72 73 74 75 76 77
This sentence contains [.userinput]*bold inline content* that's assigned a role.
=> HTML:

[source,html]
----
<p>This sentence contains <strong class="userinput">bold inline content</strong> that&#8217;s assigned a role.</p>
----
** See the link:Blocks_sample.adoc#blocks_sample[Blocks sample] for more details about the block usage.
** See the link:Links_sample.adoc#links_sample[Links sample] for more details about the link usage.
heywon.choi's avatar
heywon.choi committed
78 79 80 81 82 83 84 85 86 87 88 89
....
====
This sentence contains [.userinput]*bold inline content* that's assigned a role.
=> HTML:

[source,html]
----
<p>This sentence contains <strong class="userinput">bold inline content</strong> that&#8217;s assigned a role.</p>
----
** See the link:Blocks_sample.adoc#blocks_sample[Blocks sample] for more details about the block usage.
** See the link:Links_sample.adoc#links_sample[Links sample] for more details about the link usage.
====
heywon.choi's avatar
heywon.choi committed
90 91

== 아래 첨자 (~), 위 첨자 (^)
heywon.choi's avatar
heywon.choi committed
92 93 94 95 96 97
----
"`Well the H~2~O formula written on their whiteboard could be part
of a shopping list, but I don't think the local bodega sells
E=mc^2^,`" Lazarus replied.
----
====
heywon.choi's avatar
heywon.choi committed
98 99 100
"`Well the H~2~O formula written on their whiteboard could be part
of a shopping list, but I don't think the local bodega sells
E=mc^2^,`" Lazarus replied.
heywon.choi's avatar
heywon.choi committed
101
====
heywon.choi's avatar
heywon.choi committed
102 103

== 밑줄
heywon.choi's avatar
heywon.choi committed
104 105 106 107 108 109
----
The text pass:[<u>underline me</u>] is underlined.
----
====
The text pass:[<u>underline me</u>] is underlined.
====
heywon.choi's avatar
heywon.choi committed
110 111 112 113 114 115 116 117 118 119

== 권고 레이블
* 레이블은 대문자여야 함.
* 단락일 경우 
** 레이블 바로 뒤에 콜론(:)이 온다.
** 단락의 첫 번째 줄을 레이블에서 한 칸으로 구분
* 블록일 경우
** 속성 목록([ ])에서 레이블을 설정
** 일반적으로 예제 블록(====)에 설정
* 종류
heywon.choi's avatar
heywon.choi committed
120 121 122 123 124 125
[cols="2*"]
|===
|소스 |결과

a|
....
heywon.choi's avatar
heywon.choi committed
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
. {blank}
+
NOTE: 단락 
      note1
      note2

. {blank}
+
[TIP]
.tips
====
* 블록
* tip1
* tip2
====

. {blank}
+
IMPORTANT: important

. {blank}
+
CAUTION: caution

. {blank}
+
WARNING: warning
heywon.choi's avatar
heywon.choi committed
153
....
heywon.choi's avatar
heywon.choi committed
154

heywon.choi's avatar
heywon.choi committed
155 156 157 158 159 160
a|
. {blank}
+
NOTE: 단락 
      note1
      note2
heywon.choi's avatar
heywon.choi committed
161

heywon.choi's avatar
heywon.choi committed
162 163 164 165 166 167 168 169 170
. {blank}
+
[TIP]
.tips
====
* 블록
* tip1
* tip2
====
heywon.choi's avatar
heywon.choi committed
171

heywon.choi's avatar
heywon.choi committed
172 173 174 175 176 177 178 179 180 181 182 183
. {blank}
+
IMPORTANT: important

. {blank}
+
CAUTION: caution

. {blank}
+
WARNING: warning
|===
heywon.choi's avatar
heywon.choi committed
184