ECMAScript: evaluating onclick, onsubmit etc. done in the right way.
[elinks.git] / doc / asciidoc.conf
blob1b5c0434b69f21d063834ba12c682f146ff961f6
1 # AsciiDoc configuration file
2 # Copyright (c) Jonas Fonseca <fonseca@diku.dk>, 2006
4 # This file sets the following ELinks specific AsciiDoc macros:
6 # General purpose:
7 # - man:page[section]: which is used for linking between ELinks manpages.
9 [replacements]
10 (^|[^-])--($|[^-])=\1--\2
12 # Some macros can have optional {0} value, that is what
13 # the {0%...} and {0#...} handles.
15 #############################################################################
16 # DocBook
18 ifdef::backend-docbook[]
20 # To be replaced later
21 [attributes]
22 squote=@squote@
24 # No interlinking between elinks manpages
25 [man-inlinemacro]
26 {0%{target}}
27 {0#<citerefentry>}
28 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
29 {0#</citerefentry>}
31 # For manpages use less verbose linking
32 ifdef::doctype-manpage[]
33 [link-inlinemacro]
34 {0%&lt;{target}&gt;}
35 {0#{0} &lt;{target}&gt;}
37 [http-inlinemacro]
38 {0%&lt;http:{target}&gt;}
39 {0#{0} &lt;http:{target}&gt;}
41 [mailto-inlinemacro]
42 &lt;{target}&gt;
44 endif::doctype-manpage[]
45 endif::backend-docbook[]
47 #############################################################################
48 # XHTML11
50 ifdef::backend-xhtml11[]
52 [attributes]
53 squote='
55 # Use the man:[] macro to link between elinks manpages
56 [man-inlinemacro]
57 {eval:re.match("elinks", "{target}") != None}<a href="{target}.{0}.html">{target}({0})</a>
58 {eval:re.match("elinks", "{target}") == None}<b>{target}({0})</b>
60 endif::backend-xhtml11[]