pandoc/test/man-reader.man

392 lines
3.2 KiB
Groff
Raw Normal View History

2018-10-16 23:21:52 +02:00
.TH "Pandoc Man tests" "" "Oct 17, 2018" "" ""
.PP
This is a set of tests for pandoc.
.PP
* * * * *
.SH Headers
.SH Level 1
.SS Level 2
* * * * *
.SH Paragraphs
.PP
Here's a regular paragraph.
.PP
Another paragraph
In Markdown 1.0.0 and earlier.
Version 8.
This line turns into a list item.
Because a hard\-wrapped line in the middle of a paragraph looked like a list
item.
.PP
There should be a hard line break
.PD 0
.P
.PD
here.
.PP
* * * * *
.SH Block Quotes
Code in a block quote:
.RS
2018-10-16 23:21:52 +02:00
.nf
\f[C]
sub\ status\ {
\ \ \ \ print\ "working";
}
\f[]
.fi
.RE
2018-10-16 23:21:52 +02:00
.PP
A list:
.IP "1." 3
item one
.IP "2." 3
item two
.PP
.SH Code Blocks
.PP
Code:
.IP
.nf
\f[C]
2018-10-19 08:53:33 +02:00
\-\-\-\- (should be four hyphens)
2018-10-16 23:21:52 +02:00
2018-10-19 08:53:33 +02:00
sub status {
print "working";
2018-10-16 23:21:52 +02:00
}
\f[]
.fi
.PP
And:
.IP
.nf
\f[C]
2018-10-19 08:53:33 +02:00
\tthis code line is indented by one tab
2018-10-16 23:21:52 +02:00
\f[]
.fi
.PP
* * * * *
.SH Lists
.SS Unordered
.PP
Asterisks:
.IP \[bu] 2
asterisk 1
.IP \[bu] 2
asterisk 2
.IP \[bu] 2
asterisk 3
.PP
.SS Ordered
.IP "1." 3
First
.IP "2." 3
Second
.IP "3." 3
Third
.PP
.SS Nested
.IP \[bu] 2
Tab
.RS 2
.IP \[bu] 2
Tab
.RS 2
.IP \[bu] 2
Tab
.RE
.RE
.PP
Here's another:
.IP "1." 3
First
.IP "2." 3
Second:
.RS 4
.IP \[bu] 2
Fee
.IP \[bu] 2
Fie
.IP \[bu] 2
Foe
.RE
.IP "3." 3
Third
.PP
Same thing:
.IP "1." 3
First
.IP "2." 3
Second:
.RS 4
.IP \[bu] 2
Fee
.IP \[bu] 2
Fie
.IP \[bu] 2
Foe
.RE
.IP "3." 3
Third
.SS different styles:
.IP "A." 3
Upper Alpha
.RS 4
.IP "I." 3
Upper Roman.
.RS 4
.IP "(6)" 4
Decimal start with 6
.RS 4
.IP "c)" 3
Lower alpha with paren
.RE
.RE
.RE
.SS Ordered
Definition lists
.TP
.B term1
definition 1
.RS
2018-10-16 23:21:52 +02:00
.PP
continued
.RE
.TP
.B term2
definition 2
2018-10-16 23:21:52 +02:00
* * * * *
.SH Special Characters
AT&T has an ampersand in their name.
.PP
4 < 5.
.PP
6 > 5.
.PP
Backslash: \\
.PP
Backtick: `
.PP
Asterisk: *
.PP
Underscore: _
.PP
Left brace: {
.PP
Right brace: }
.PP
Left bracket: [
.PP
Right bracket: ]
.PP
Left paren: (
.PP
Right paren: )
.PP
Greater\-than: >
.PP
Hash: #
.PP
Period: .
.PP
Bang: !
.PP
Plus: +
.PP
Minus: \-
.PP
.SH Links
.PP
.UR http://\:example.com
some random
site
.UE .
.PP
.MT me@example.com
my email address
.ME .
.SH Macros
.de au
.B
Me Myself
..
.de auth !!
.I
The author is \\$1.
.!!
.au
and I.
.auth "John Jones"
.ds me The \f[B]Author\f[R]
It's \*(me.
.SH Tables
.TS
tab(@);
r l c l.
T{
Right
T}@T{
Left
T}@T{
Center
T}@T{
Default
T}
_
T{
12
T}@T{
12
T}@T{
12
T}@T{
12
T}
T{
123
T}@T{
123
T}@T{
123
T}@T{
123
T}
T{
1
T}@T{
1
T}@T{
1
T}@T{
1
T}
.TE
.TS
allbox tab(;);
rlcl.
T{
Right
T};T{
Left
T};T{
Center
T};T{
Left
\f[I]more\f[R]
T}
_
T{
12
T};T{
12
T};T{
12
T};T{
12
T}
T{
123
T};T{
123
T};T{
123
T};T{
123
T}
T{
1
T};T{
1
T};T{
1
T};T{
1
T}
.TE
.TS
tab(@);
cw(10.5n) lw(9.6n) rw(11.4n) lw(24.5n).
T{
Centered Header
T}@T{
Left Aligned
T}@T{
Right Aligned
T}@T{
Default aligned
T}
_
T{
First
T}@T{
row
T}@T{
12.0
T}@T{
Example of a row that spans multiple lines.
T}
T{
Second
T}@T{
row
T}@T{
5.0
T}@T{
Here\[cq]s another one.
Note the blank line between rows.
T}
.TE
.PP
Table without column headers:
.PP
.TS
tab(@);
r l c r.
T{
12
T}@T{
12
T}@T{
12
T}@T{
12
T}
T{
123
T}@T{
123
T}@T{
123
T}@T{
123
T}
T{
1
T}@T{
1
T}@T{
1
T}@T{
1
T}
.TE
.TS
tab(@);
rl.
a@b
T{
.PP
one
.PP
two
T}@T{
.nf
some
code
.fi
T}
.TE