Links_sample.adoc 5.05 KB
Newer Older
heywon.choi's avatar
heywon.choi committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
= Links Sample
Gildong Hong <email1@bwg.com>
:description: The document's description. This document is about the links sample.
include::./attributes/common_attrs.adoc[]
include::./attributes/dir_attrs.adoc[]

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

.About {author}
This is a basic AsciiDoc document by {author}.
You can contact {firstname} at {email}.

== 자동 링크
* http
* https
* ftp
* irc
* mailto
heywon.choi's avatar
heywon.choi committed
24 25 26 27 28 29 30 31 32 33 34
----
The homepage for the Asciidoctor Project is https://www.asciidoctor.org.
Email us at hello@example.com to say hello.

// 자동 링크 피하기
Once launched, the site will be available at \https://example.org.
If you cannot access the site, email \help@example.org for assistance.
----

* 결과
+
heywon.choi's avatar
heywon.choi committed
35 36 37 38 39 40 41 42
====
The homepage for the Asciidoctor Project is https://www.asciidoctor.org.
Email us at hello@example.com to say hello.

// 자동 링크 피하기
Once launched, the site will be available at \https://example.org.
If you cannot access the site, email \help@example.org for assistance.
====
heywon.choi's avatar
heywon.choi committed
43

heywon.choi's avatar
heywon.choi committed
44 45
=== 링크 속성
* 빈 창을 대상으로 지정하도록 링크 텍스트 끝에 캐럿(^) 삽입 및 role 적용
heywon.choi's avatar
heywon.choi committed
46 47 48 49 50 51
** pass:[Chat with other AsciiDoc users in the https://chat.asciidoc.org[*project chat*^,role=green].]
*** 결과
+
====
Chat with other AsciiDoc users in the https://chat.asciidoc.org[*project chat*^,role=green].
====
heywon.choi's avatar
heywon.choi committed
52

heywon.choi's avatar
heywon.choi committed
53 54 55 56 57 58 59 60 61 62 63 64 65
* 링크 텍스트에 쉼표나 등호가 포함된 경우 큰따옴표로 묶어준다.
** pass:[https://example.org["Google, DuckDuckGo, Ecosia"^,role=teal]]
*** 결과
+
====
https://example.org["Google, DuckDuckGo, Ecosia"^,role=teal]
====
** pass:[https://example.org["1=2 posits the problem of inequality"^]]
*** 결과
+
====
https://example.org["1=2 posits the problem of inequality"^]
====
heywon.choi's avatar
heywon.choi committed
66 67

* URL에 밑줄(_) 또는 캐럿(^)과 같은 문자가 포함된 경우 ++ 로 감싼다.
heywon.choi's avatar
heywon.choi committed
68 69 70 71 72 73
** pass:[link:+++https://asciidoctor.org/now_this__link_works.html+++[문제 URL^]]
*** 결과
+
====
link:+++https://asciidoctor.org/now_this__link_works.html+++[문제 URL^]
====
heywon.choi's avatar
heywon.choi committed
74 75

* 링크를 클릭하면 이메일 클라이언트가 제목 줄에 "Subscribe me"를 입력한다.
heywon.choi's avatar
heywon.choi committed
76 77 78 79 80 81 82 83 84 85 86 87
** pass:[mailto:join@discuss.example.org[Subscribe,Subscribe me]]
*** 결과
+
====
mailto:join@discuss.example.org[Subscribe,Subscribe me]
====
** pass:[mailto:join@discuss.example.org[,Subscribe me]]
*** 결과
+
====
mailto:join@discuss.example.org[,Subscribe me]
====
heywon.choi's avatar
heywon.choi committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105

== 상호 참조
=== 자동 앵커
AsciiDoc 프로세서는 모든 섹션 및 개별 제목에 대한 앵커를 자동으로 생성.

.자동 생성 규칙
* 인라인 서식 적용(제목 대체 순서).
* 모든 문자는 소문자로 변환
* 공백, 하이픈 및 마침표는 idseparator 특성의 값으로 대체(기본값)_
* 반복되는 구분 기호 문자 압축
* 필요한 경우 ID가 문서 내에서 고유할 때까지 시퀀스 번호 추가
====
== Auto Section
=> _auto_section

== Wiley & Sons, Inc.
=> _wiley_sons_inc
====
heywon.choi's avatar
heywon.choi committed
106 107 108 109 110 111 112 113 114
* 자동 섹션 ID 생성 비활성화
+
----
:!sectids:
== ID generation off
:sectids:

== ID generation on again
----
heywon.choi's avatar
heywon.choi committed
115 116 117 118 119 120

=== 수동 앵커
* 첫 번째 문자는 문자, 콜론 또는 밑줄
* 선택적 다음 문자는 문자, 콜론, 밑줄, 하이픈, 마침표 또는 숫자
* ID에 공백 문자를 사용 불가
* 가능하면 소문자를 사용
heywon.choi's avatar
heywon.choi committed
121 122 123 124 125 126 127
----
[#manual_id]
Manually set id
----

** 결과
+
heywon.choi's avatar
heywon.choi committed
128 129 130 131 132 133 134
====
[#manual_id]
Manually set id
====

=== 내부 상호 참조
* 대상 섹션의 ID를 사용한 상호 참조
heywon.choi's avatar
heywon.choi committed
135 136 137 138 139 140 141 142 143
+
----
The section <<_자동_앵커,Auto>> describes how automatic anchors work.
The section <<manual_id,Manual>> describes how manual anchors work.
----

** 결과
+
====
heywon.choi's avatar
heywon.choi committed
144 145
The section <<_자동_앵커,Auto>> describes how automatic anchors work.
The section <<manual_id,Manual>> describes how manual anchors work.
heywon.choi's avatar
heywon.choi committed
146
====
heywon.choi's avatar
heywon.choi committed
147 148 149

=== 문서간 상호 참조
문서 간 상호 참조에 대한 링크 텍스트는 (현재) 필수
heywon.choi's avatar
heywon.choi committed
150 151 152
----
Refer to xref:Section_sample.adoc#section_A[Section A] for more information.
----
heywon.choi's avatar
heywon.choi committed
153

heywon.choi's avatar
heywon.choi committed
154 155 156 157 158
* 결과
+
====
Refer to xref:Section_sample.adoc#section_A[Section A] for more information.
====
heywon.choi's avatar
heywon.choi committed
159 160

=== 각주
heywon.choi's avatar
heywon.choi committed
161 162 163
* 문장 부호 바로 뒤에 각주 매크로(pass:[footnote:[text]])를 삽입합니다.
** 각주 매크로는 단일 콜론(:)만 사용
** 대괄호([]) 안에 각주의 내용 입력. 멀티라인 가능
heywon.choi's avatar
heywon.choi committed
164
* 각주를 재사용하려는 경우 대상 위치에 고유 ID 지정
heywon.choi's avatar
heywon.choi committed
165
** pass:[footnote:id[text]]
heywon.choi's avatar
heywon.choi committed
166
* 기존 각주를 참조하려면 대상 슬롯에 각주의 ID만 지정하고 빈대괄호 사용
heywon.choi's avatar
heywon.choi committed
167 168 169 170 171 172 173 174 175 176 177 178 179
** pass:[footnote:id[]]
----
The hail-and-rainbow protocol can be initiated at five levels:

. doublefootnote:[The double hail-and-rainbow level makes my toes tingle.]
. tertiary
. supernumerary

A bold statement!footnote:disclaimer[Opinions are my own.]
Another outrageous statement.footnote:disclaimer[]
----
* 결과
+
heywon.choi's avatar
heywon.choi committed
180 181 182 183 184 185 186 187 188 189
====
The hail-and-rainbow protocol can be initiated at five levels:

. doublefootnote:[The double hail-and-rainbow level makes my toes tingle.]
. tertiary
. supernumerary

A bold statement!footnote:disclaimer[Opinions are my own.]
Another outrageous statement.footnote:disclaimer[]
====