AtlatestRepositorysigil-doc

sigil-doc / tree / test / fixturessd-p4-collision.sgd

1#lang sigil/doc/book
2@(define support-binding 1)
3@chapter["Passive Surface Pressure" authors: '("SD-P4")]
4
5@section["Spans and delimiters" id: "spans"]
6
7@p{Prose with an inline @em{emphasis}, an inline @code{map} call, and the
8document escapes @@ @{ @} @[ @] which each occupy two manuscript characters
9and one text node.}
11@p{Multi-byte prose keeps byte offsets and scalar offsets apart: καλημέρα
12κόσμε, ολα καλα, and @em{κόσμε} again inside a nested command.}
14@p{An argument group may contain a delimiter inside a string, as in
15@ref["a ] bracket"]{a label}, which only the standard reader can resolve.}
17@end section
19@section["Commands that collide with internal pseudo-kinds" id: "collisions"]
21@p{The parser's internal tree uses five-slot @code{text} and @code{expr}
22pseudo-nodes. These are author commands with the same head symbol and must
23remain commands on the passive surface: @text{a text command} and
24@expr{an expr command}.}
26@end section
28@section["Body kinds" id: "bodies"]
30@p{A brace body.}
32@p: A line body that ends at the physical newline.
34@tip
35@p{A named body closed by an explicit end marker.}
36@end tip
38@code["sigil"]{(display "brace code body")}
40@code[#f]: unlabelled line code body
42@code
43 raw named code body: @@ and @end other and } are all inert here
44@end code
46@end section
47@end chapter