aboutsummaryrefslogtreecommitdiffstats
path: root/docbook/asciidoc.conf
blob: 0c3608c464bb33684cea58d18bea0f2b49da99c2 (plain)
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
# AsciiDoc configuration for Wireshark

[attributes]

# Moved to attributes.asciidoc

[replacements]

# Moved to attributes.asciidoc

[macros]

# bugs.wireshark.org link
# ws-buglink:<dddd>[<bug text>]
# Default bug text is "Bug".
# Examples: ws-buglink:5000[] ws-buglink:4000[Wireshark bug number]
(?su)(?<!\w)[\\]?(?P<name>ws-buglink):(?P<target>\d+)\[(?P<attrlist>.*?)(?<!\\)\]=

# www.wireshark.org/security link
# ws-salink:<dddd-dd>[<advisory text>]
# Default advisory text is "".
# Examples: ws-salink:2013-32[] ws-salink:2013-12[Security advisory]
(?su)(?<!\w)[\\]?(?P<name>ws-salink):(?P<target>\d{4}-\d{2,3})\[(?P<attrlist>.*?)(?<!\\)\]=

# CVE ID link
# cve-idlink:<dddd-dddd>[]
# Example: cve-idlink:2013:0001
(?su)(?<!\w)[\\]?(?P<name>cve-idlink):(?P<target>\d{4}-\d+)\[\]=


ifdef::backend-docbook45[]

[ws-buglink-inlinemacro]
<ulink url="https://bugs.wireshark.org/bugzilla/show_bug.cgi?id={target}">{0=Bug} {target}</ulink>

[ws-salink-inlinemacro]
<ulink url="https://www.wireshark.org/security/wnpa-sec-{target}.html">{0=}wnpa-sec-{target}</ulink>

[cve-idlink-inlinemacro]
<ulink url="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-{target}">CVE-{target}</ulink>

endif::backend-docbook45[]


ifdef::backend-html4,backend-html5,backend-xhtml11[]

[ws-buglink-inlinemacro]
<a href="https://bugs.wireshark.org/bugzilla/show_bug.cgi?id={target}">{0=Bug} {target}</a>

[ws-salink-inlinemacro]
<a href="https://www.wireshark.org/security/wnpa-sec-{target}.html">{0=}wnpa-sec-{target}</a>

[cve-idlink-inlinemacro]
<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-{target}">CVE-{target}</a>

endif::backend-html4,backend-html5,backend-xhtml11[]


# Given a list of items, sort and comma-separate them. Blank lines are stripped.
# Case is ignored. For example,
#
# --sort-and-group--
# One
# two
# red
#
# blue
# Fish
#
# --sort-and-group--
#
# produces
#
#     blue, Fish, One, red, two
[blockdef-sort-and-group]
delimiter=^--sort-and-group--$
style=default
filter=sort --ignore-case
default-style=template="paragraph",filter='sort --ignore-case | sed -e "s/,//g" | sed -e "/^$/d" -e "$ s/^/and /" -e "$ ! s/$/,/" -e "1 s/^and //"'