text.adoc 5.71 KB
Newer Older
1
2
3
4
5
6
// tag::para[]
This journey begins one late Monday afternoon in Antwerp.

Our team desperately needs coffee, but none of us dare open the office door.
// end::para[]

7
8
// used in qr
// FIXME this should be in the blocks module
9
// tag::b-para[]
10
11
Paragraphs don't require special markup in AsciiDoc.
A paragraph is defined by one or more consecutive lines of text.
12
Newlines within a paragraph are not displayed.
13
14

Leave at least one blank line to begin a new paragraph.
15
16
// end::b-para[]

17
//used in qr
18
// tag::hb-all[]
19
20
Roses are red, +
violets are blue.
21
22

[%hardbreaks]
23
A ruby is red.
24
25
26
27
Java is black.
// end::hb-all[]

// tag::hb[]
28
29
Roses are red, +
violets are blue.
30
31
32
33
// end::hb[]

// tag::hb-p[]
[%hardbreaks]
34
A ruby is red.
35
36
37
38
39
40
41
42
43
44
Java is black.
// end::hb-p[]

// tag::b-hb[]
To preserve a line break, end the line in a space followed by a plus sign. +
This results in a visible line break (e.g., `<br>`) between the lines.
// end::b-hb[]

// tag::hb-attr[]
= Line Break Doc Title
45
:hardbreaks-option:
46

47
48
Roses are red,
violets are blue.
49
50
51
52
53
54
55
56
57
58
59
60
// end::hb-attr[]

// tag::lead[]
[.lead]
This is the ultimate paragraph.
// end::lead[]

// tag::b-lead[]
[.lead]
This text will be styled as a lead paragraph (i.e., larger font).
// end::b-lead[]

61
62
63
64
65
66
67
// tag::qr-lead[]
[.lead]
This text will be styled as a lead paragraph (i.e., larger font).

This paragraph will not be.
// end::qr-lead[]

68
69
70
71
72
73
74
75
76
77
78
79
// tag::b-i[]
_To tame_ the wild wolpertingers we needed to build a *charm*.
But **u**ltimate victory could only be won if we divined the
*_true name_* of the __war__lock.
// end::b-i[]

// tag::b-i-n[]
_To tame_ the wild wolpertingers we needed to build a *charm*.
But **u**ltimate victory could only be won if we divined the
*_true name_* of the __war__lock.
// end::b-i-n[]

80
// used in qr
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// tag::b-bold-italic-mono[]
bold *constrained* & **un**constrained

italic _constrained_ & __un__constrained

bold italic *_constrained_* & **__un__**constrained

monospace `constrained` & ``un``constrained

monospace bold `*constrained*` & ``**un**``constrained

monospace italic `_constrained_` & ``__un__``constrained

monospace bold italic `*_constrained_*` & ``**__un__**``constrained
// end::b-bold-italic-mono[]

97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// tag::constrained-bold-italic-mono[]
It has *strong* significance to me.

I _cannot_ stress this enough.

Type `OK` to accept.

That *_really_* has to go.

Can't pick one? Let's use them `*_all_*`.
// end::constrained-bold-italic-mono[]

// tag::unconstrained-bold-italic-mono[]
**C**reate, **R**ead, **U**pdate, and **D**elete (CRUD)

That's fan__freakin__tastic!

Don't pass generic ``Object``s to methods that accept ``String``s!

It was Beatle**__mania__**!
// end::unconstrained-bold-italic-mono[]

// used in qr
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
// tag::monospace-vs-codespan[]
`{cpp}` is valid syntax in the programming language by the same name.

`+WHERE id <= 20 AND value = "{name}"+` is a SQL WHERE clause.
// end::monospace-vs-codespan[]

// tag::c-quote-co[]
"`What kind of charm?`" Lazarus asked.
"`An odoriferous one or a mineral one?`" <.>

Kizmet shrugged.
"`The note from Olaf's desk says '`wormwood and licorice,`'
but these could be normal groceries for werewolves.`" <.>
// end::c-quote-co[]

// tag::c-quote[]
"`What kind of charm?`" Lazarus asked.
"`An odoriferous one or a mineral one?`"

Kizmet shrugged.
"`The note from Olaf's desk says '`wormwood and licorice,`'
but these could be normal groceries for werewolves.`"
// end::c-quote[]

144
// used in qr
145
146
147
148
149
150
151
// tag::b-c-quote[]
"`double curved quotes`"

'`single curved quotes`'

Olaf's desk was a mess.

152
153
A ``std::vector```'s size is the number of items it contains.

154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
All of the werewolves`' desks were a mess.

Olaf had been with the company since the `'00s.
// end::b-c-quote[]

// tag::apos[]
Olaf had been with the company since the `'00s.
His desk overflowed with heaps of paper, apple cores and squeaky toys.
We couldn't find Olaf's keyboard.
The state of his desk was replicated, in triplicate, across all of
the werewolves`' desks.
// end::apos[]

// tag::sub-sup[]
"`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.
// end::sub-sup[]

173
//used in qr
174
175
176
177
178
179
180
181
182
183
184
185
186
187
// tag::b-sub-sup[]
^super^script phrase

~sub~script phrase
// end::b-sub-sup[]

// tag::mono[]
"`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!_
// end::mono[]

// tag::literal-mono[]
188
189
You can reference the value of a document attribute using
the syntax `+{name}+`, where `name` is the attribute name.
190
191
192
193
194
195
// end::literal-mono[]

// tag::literal-mono-with-plus[]
`pass:[++]` is the increment operator in C.
// end::literal-mono-with-plus[]

196
// used in qr
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
// tag::b-mono-code[]
Reference code like `types` or `methods` inline.

Do not pass arbitrary ``Object``s to methods that accept ``String``s!
// end::b-mono-code[]

// tag::highlight[]
Werewolves are #allergic to cinnamon#.
// end::highlight[]

// tag::highlight-html[]
<mark>mark element</mark>
// end::highlight-html[]

// tag::css-co[]
Do werewolves believe in [.small]#small print#? <.>

[.big]##O##nce upon an infinite loop.
// end::css-co[]

// tag::css[]
Do werewolves believe in [.small]#small print#?

[big]##O##nce upon an infinite loop.
// end::css[]

223
224
225
// used in qr
// tag::qr-all[]
Werewolves are allergic to #cinnamon#.
226

227
##Mark##up refers to text that contains formatting ##mark##s.
228

229
Where did all the [.underline]#cores# go?
230

231
We need [.line-through]#ten# twenty VMs.
232

233
234
A [.myrole]#custom role# must be fulfilled by the theme.
// end::qr-all[]
235
236
237
238
239
240
241
242
243
244
245
246

// tag::css-custom[]
Type the word [.userinput]#asciidoctor# into the search bar.
// end::css-custom[]

// tag::css-custom-html[]
<span class="userinput">asciidoctor</span>
// end::css-custom-html[]

////
phrase styled by CSS class .small#
////