1#
2# asciidoc.conf
3#
4# Asciidoc global configuration file.
5# Contains backend independent configuration settings that are applied to all
6# AsciiDoc documents.
7#
8
9[miscellaneous]
10tabsize=8
11textwidth=70
12newline=\r\n
13
14[glossary]
15empty=
16amp=&
17lt=<
18gt=>
19brvbar=|
20
21[titles]
22underlines="==","--","~~","^^","++"
23subs=specialcharacters,quotes,replacements,macros,glossary
24# The title cannot start or end with characters that could match a table ruler,
25# consequently the title must be 2 or more chars.
26blocktitle=^\.(?P<title>[^\s\.\-~_].*[^\-~_])$
27
28[specialcharacters]
29&=&amp;
30<=&lt;
31>=&gt;
32
33[quotes]
34*=strong
35'=emphasis
36`=monospaced
37
38[specialwords]
39strongwords=^\s*NOTE: ^\s*TODO: ^\s*TIP: ^\s*IMPORTANT: ^\s*WARNING:
40
41[replacements]
42\(C\)=&copy;
43\(TM\)=&trade;
44
45# Paragraphs.
46[paradef-default]
47delimiter=(?P<text>\S.*)
48section=paragraph
49
50[paradef-indented]
51delimiter=(?P<text>\s+.*)
52section=indentedparagraph
53presubs=specialcharacters
54options=listelement
55
56[macros]
57# Inline macros.
58# Note backslash prefix required for escape processing.
59[\\]?(?P<name>\w(\w|-)*?):(?P<target>\S*?)(\[(?P<caption>.*?)\])=
60# Anchor: [[id,xreflabel]]
61[\\]?\[\[(?P<caption>[\w"].*?)\]\]=anchor2
62# Link: <<id,text>>
63[\\]?&lt;&lt;(?P<caption>[\w"].*?)&gt;&gt;=xref2
64
65# Block macros.
66^(?P<name>\w(\w|-)*?)::(?P<target>\S*?)(\[(?P<caption>.*?)\])$=#
67
68# Builtin macros.
69^(?P<name>\w(\w|-)*?)::(?P<target>\S*?)(\[(?P<caption>.*?)\])$=+
70
71# Delimited blocks.
72[blockdef-comment]
73delimiter=^/{3,}
74options=skip
75
76[blockdef-sidebar]
77delimiter=^\*{3,}(\[(?P<args>.*)\])?\**$
78section=sidebarblock
79options=section,argsline
80
81[blockdef-custom]
82delimiter=^\+{3,}(\[(?P<args>.*)\])?\+*$
83section=customblock
84presubs=macros,glossary
85
86[blockdef-verbatim]
87delimiter=^-{3,}(\[(?P<args>.*)\])?-*$
88section=verbatimblock
89presubs=specialcharacters
90
91[blockdef-indented]
92delimiter=^\.{3,}(\[(?P<args>.*)\])?\.*$
93section=indentedblock
94presubs=specialcharacters
95
96[blockdef-quote]
97delimiter=^_{3,}(\[(?P<args>.*)\])?_*$
98section=quoteblock
99options=section,argsline
100
101# Lists.
102[listdef-itemized]
103type=simple
104delimiter=^\s*- {1,}(?P<text>.+)$
105listtag=ilist
106itemtag=ilistitem
107texttag=ilisttext
108
109[listdef-ordered]
110type=simple
111delimiter=^\s*\d*\. {1,}(?P<text>.+)$
112listtag=olist
113itemtag=olistitem
114texttag=olisttext
115
116[listdef-variable]
117type=variable
118delimiter=^\s*(?P<text>[\S].*)::$
119listtag=vlist
120itemtag=vlistitem
121texttag=vlisttext
122entrytag=vlistentry
123termtag=vlistterm
124
125[listdef-qanda]
126# Question and Answer list.
127type=variable
128delimiter=^\s*(?P<text>[\S].*)\?\?$
129listtag=qlist
130itemtag=qlistitem
131texttag=qlisttext
132entrytag=qlistentry
133termtag=qlistterm
134
135# Bibliography list.
136[listdef-bibliography]
137type=simple
138delimiter=^\+ {1,}(?P<text>.+)$
139listtag=blist
140itemtag=blistitem
141texttag=blisttext
142
143# Glossary list.
144[listdef-glossary]
145type=variable
146delimiter=^(?P<text>[\S].*):-$
147listtag=glist
148itemtag=glistitem
149texttag=glisttext
150entrytag=glistentry
151termtag=glistterm
152
153# Alternative list syntaxes.
154[listdef-itemized2]
155type=simple
156delimiter=^\s*\* {1,}(?P<text>.+)$
157listtag=ilist
158itemtag=ilistitem
159texttag=ilisttext
160
161[listdef-ordered2]
162type=simple
163delimiter=^\s*[.a-z]\. {1,}(?P<text>.+)$
164listtag=olist2
165itemtag=olistitem
166texttag=olisttext
167
168# Tables.
169[tabledef-default]
170fillchar=-
171format=fixed
172
173[tabledef-csv]
174fillchar=~
175format=csv
176
177[tabledef-dsv]
178fillchar=_
179format=dsv
180