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

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

== 자동 링크
* http
* https
* ftp
* irc
* mailto
heywon.choi's avatar
heywon.choi committed
19 20 21 22 23 24 25 26 27 28 29
----
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
30 31 32 33 34 35 36 37
====
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
38

heywon.choi's avatar
heywon.choi committed
39 40
=== 링크 속성
* 빈 창을 대상으로 지정하도록 링크 텍스트 끝에 캐럿(^) 삽입 및 role 적용
heywon.choi's avatar
heywon.choi committed
41 42 43 44 45 46
** 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
47

heywon.choi's avatar
heywon.choi committed
48 49 50 51 52 53 54 55 56 57 58 59 60
* 링크 텍스트에 쉼표나 등호가 포함된 경우 큰따옴표로 묶어준다.
** 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
61 62

* URL에 밑줄(_) 또는 캐럿(^)과 같은 문자가 포함된 경우 ++ 로 감싼다.
heywon.choi's avatar
heywon.choi committed
63 64 65 66 67 68
** 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
69 70

* 링크를 클릭하면 이메일 클라이언트가 제목 줄에 "Subscribe me"를 입력한다.
heywon.choi's avatar
heywon.choi committed
71 72 73 74 75 76 77 78 79 80 81 82
** 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
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100

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

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

== Wiley & Sons, Inc.
=> _wiley_sons_inc
====
heywon.choi's avatar
heywon.choi committed
101 102 103 104 105 106 107 108 109
* 자동 섹션 ID 생성 비활성화
+
----
:!sectids:
== ID generation off
:sectids:

== ID generation on again
----
heywon.choi's avatar
heywon.choi committed
110 111 112 113 114 115

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

** 결과
+
heywon.choi's avatar
heywon.choi committed
123 124 125 126 127 128 129
====
[#manual_id]
Manually set id
====

=== 내부 상호 참조
* 대상 섹션의 ID를 사용한 상호 참조
heywon.choi's avatar
heywon.choi committed
130 131 132 133 134 135 136 137 138
+
----
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
139 140
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
141
====
heywon.choi's avatar
heywon.choi committed
142 143 144

=== 문서간 상호 참조
문서 간 상호 참조에 대한 링크 텍스트는 (현재) 필수
heywon.choi's avatar
heywon.choi committed
145
----
heywon.choi's avatar
heywon.choi committed
146
Refer to xref:./section.adoc#_section_a[Section A] for more information.
heywon.choi's avatar
heywon.choi committed
147
----
heywon.choi's avatar
heywon.choi committed
148

heywon.choi's avatar
heywon.choi committed
149 150 151
* 결과
+
====
heywon.choi's avatar
heywon.choi committed
152
Refer to xref:./section.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

=== 각주
heywon.choi's avatar
heywon.choi committed
156 157 158
* 문장 부호 바로 뒤에 각주 매크로(pass:[footnote:[text]])를 삽입합니다.
** 각주 매크로는 단일 콜론(:)만 사용
** 대괄호([]) 안에 각주의 내용 입력. 멀티라인 가능
heywon.choi's avatar
heywon.choi committed
159
* 각주를 재사용하려는 경우 대상 위치에 고유 ID 지정
heywon.choi's avatar
heywon.choi committed
160
** pass:[footnote:id[text]]
heywon.choi's avatar
heywon.choi committed
161
* 기존 각주를 참조하려면 대상 슬롯에 각주의 ID만 지정하고 빈대괄호 사용
heywon.choi's avatar
heywon.choi committed
162 163 164 165 166 167 168 169 170 171 172 173 174
** 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
175 176 177 178 179 180 181 182 183 184
====
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[]
====