pass.adoc 2.26 KB
Newer Older
1
2
3
4
// tag::in-macro[]
The text pass:[<u>underline me</u>] is underlined.
// end::in-macro[]

5
6
7
8
9
10
11
12
// tag::in-macro-sub[]
The text pass:q[<u>underline *me*</u>] is underlined.
// end::in-macro-sub[]

// tag::in-macro-subs[]
The text pass:q,a[<u>underline _{docname}_</u>] is underlined.
// end::in-macro-subs[]

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// tag::s-macro[]
The text pass:q[<u>underline *me*</u>] is underlined and the word "`me`" is bold.
// end::s-macro[]

// tag::3p[]
The text +++<u>underline me</u>+++ is underlined.
// end::3p[]

// tag::b-3p-macro[]
+++<u>underline me</u>+++ is underlined.

pass:[<u>underline me</u>] is also underlined.
// end::b-3p-macro[]

// tag::tick[]
This java code: `System.out.println("No *bold* here");`
will appear in a monospace font but without any other
text formatting.
// end::tick[]

33
// in qr
34
35
36
37
38
39
40
41
42
43
44
// tag::plus[]
Text between + characters, such as +/document/{id}+
is not substituted.
However, special characters like +<+ and +>+
are still escaped.

You can write `C++{plus}{plus}++` as `+{cpp}+`.
If you need to reference another {pp} language,
you can write it as `+SQL{pp}+`.
// end::plus[]

45
// in qr
46
// tag::backtick-plus[]
47
Output literal monospace text such as `+{backtick}+` or `+http://localhost:8080+` by enclosing the text in a pair of pluses surrounded by a pair backticks.
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// end::backtick-plus[]

// tag::sub-in[]
[subs=+macros] <.>
----
I better not contain *bold* or _italic_ text.
pass:quotes[But I should contain *bold* text.] <.>
----
// end::sub-in[]

// tag::sub-out[]
[subs=+macros]
----
I better not contain *bold* or _italic_ text.
pass:quotes[But I should contain *bold* text.]
----
// end::sub-out[]

// tag::bl[]
++++
<video poster="images/movie-reel.png">
  <source src="videos/writing-zen.webm" type="video/webm">
</video>
++++
// end::bl[]

74
// in qr
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// tag::b-bl[]
++++
<p>
Content in a passthrough block is passed to the output unprocessed.
That means you can include raw HTML, like this embedded Gist:
</p>

<script src="https://gist.github.com/mojavelinux/5333524.js">
</script>
++++
// end::b-bl[]

// tag::subs-bl[]
[subs=attributes]
++++
{name}
image:tiger.png[]
++++
// end::subs-bl[]

// tag::no-para[]
[subs=normal]
++++
Normal content which is not enclosed in a paragraph.
++++
// end::no-para[]

// tag::pass-style[]
[pass]
<u>underline me</u> is underlined.
// end::pass-style[]