-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathquickbook_fixture.qbk
More file actions
89 lines (70 loc) · 2.43 KB
/
Copy pathquickbook_fixture.qbk
File metadata and controls
89 lines (70 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[/
Synthetic fixture for QuickBook parser tests.
Patterns adapted from Beast documentation (sections,
headings, tables with code fences, variablelist, admonitions, links).
]
[section:complex_fixture Complex QuickBook test fixture]
This opening paragraph soft-wraps onto a second line while keeping an
inline [@https://example.com/path RFC-style link] and a named
[link beast.ref.boost__beast__http__message `message`] reference in the
same paragraph block.
[h2 Section headings and lists]
* First bullet names [link beast.ref.boost__beast__http__request `request`].
* Second bullet continues the list with plain prose.
[#anchor_skipped]
[heading:custom Custom heading with id]
[:This is a single-line blockquote for translation.]
[note
This is a multi-line admonition body. It contains a paragraph that should
still be extracted when the note block is parsed recursively.
A second paragraph inside the same note uses [@https://tools.ietf.org/html/rfc6455 WebSocket] markup.
]
[section:nested_inner Nested section title here]
Inner section prose explains that `template` parameters accept any
[link beast.ref.boost__beast__http__fields `fields`] type meeting requirements.
The paragraph joins wrapped source lines into one translatable unit.
// This indented line starts a code block (non-translatable).
// It must not become its own translation unit.
After the code block, prose resumes with a dollar image that is skipped:
[$beast/images/message.png [width 100px] [height 50px]]
[endsect]
[table Message patterns
[[Name][Description]]
[[
__message__
][
```
/// Class template overview
template<class Body, class Fields>
class message;
```
]]
[[
[link beast.ref.boost__beast__http__request `request`]
][
```
/// HTTP request alias
template<class Body, class Fields = fields>
using request = message<true, Body, Fields>;
```
]]
[[Plain prose cell][
This cell has human-readable text only, without a code fence.
]]
]
[variablelist FAQ-style entries
[[
"Does this fixture include a variablelist?"
][
Yes. This pair mimics patterns from the FAQ chapter: quoted question
strings and multi-sentence answers with blank-line-separated paragraphs.
Second paragraph in the same answer cell.
]]
[[
"What about table titles?"
][
The table above includes an explicit title line after the opening bracket.
]]
]
[warning This is a one-line warning about edge cases in handshakes.]
[endsect]