aboutsummaryrefslogtreecommitdiff
path: root/myfilter.conf
blob: 38ef38707ff808bd1565e7e5e1d14934932721f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# AsciiDoc filter for graphviz

[svg-template]
<div class="svg">
<div class="title">{title}</div>
<object type="image/svg+xml" data="{file}"></object>
</div>

[blockdef-filter]
ifdef::backend-xhtml11[]
dotty-style=template="svg-template",subs=(),posattrs=("style","file"),filter="dot -Tsvg -o{outdir}/{file}; echo"
endif::backend-xhtml11[]

[macros]
(?su)[\\]?(?P<name>api):(?P<target>\S*?)(\[(?P<attrlist>.*?)\])=

[api-inlinemacro]
<a href="../{target}/index.html">{0=<tt>{target}</tt>}</a>