forked from ankitects/anki-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasciidoc.conf
More file actions
43 lines (37 loc) · 1.12 KB
/
Copy pathasciidoc.conf
File metadata and controls
43 lines (37 loc) · 1.12 KB
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
[titles]
sect0=^_ +(?P<title>[\S].*?)( +_)?$
sect1=^= +(?P<title>[\S].*?)( +=)?$
sect2=^== +(?P<title>[\S].*?)( +==)?$
sect3=^=== +(?P<title>[\S].*?)( +===)?$
sect4=^==== +(?P<title>[\S].*?)( +====)?$
[titles]
underlines="__","==","--","~~","^^"
[paradef-admonition]
IMPORTANT-style=caption='{important-caption}',name='important',template='importantparagraph'
[importantparagraph]
template::[importantblock]
[importantblock]
<div class="importantblock"{id? id="{id}"}>
<table><tr>
<td class="icon">
{data-uri%}{icons#}<img src="{icon={iconsdir}/{name}.png}" alt="{caption}" />
{data-uri#}{icons#}<img alt="{caption}" src="data:image/png;base64,
{data-uri#}{icons#}{sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join("{indir={outdir}}","{icon={iconsdir}/{name}.png}")}"}" />
{icons%}<div class="title">{caption}</div>
</td>
<td class="content">
<div class="title">{title}</div>
|
</td>
</tr></table>
</div>
# no [] around references
[xref2-inlinemacro]
<a href="#{1}">{2={1}}</a>
# don't include last-update
[footer]
</div>
{disable-javascript%<div id="footnotes"></div>}
<br>
</body>
</html>