forked from marijnh/Eloquent-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathasciidoc_html.conf
More file actions
158 lines (128 loc) · 3.35 KB
/
asciidoc_html.conf
File metadata and controls
158 lines (128 loc) · 3.35 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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
[miscellaneous]
newline=\n
[attributes]
disable-javascript=True
warnings=False
highlight=False
html_target=True
interactive_target=True
encoding=UTF-8
sectids!
lsquo=‘
rsquo=’
ldquo=“
rdquo=”
[quotes]
`=#monospaced
[macros]
(?su)(?<!\w)indexsee:\[(?P<attrlist>[^\]]*?)\]=indexsee
\(!html (?P<text>(?:.|\n)*?)!\)=included
\(!tex (?P<text>(?:.|\n)*?)!\)=excluded
\(!interactive (?P<text>(?:.|\n)*?)!\)=included
\(!book (?P<text>(?:.|\n)*?)!\)=excluded
(?su)(?<!\()[\\]?\(\(\((?P<attrlist>[^(](?:[^()]|\n)*?)\)\)\)(?!\))=indexterm
(?<!\()[\\]?\(\((?P<attrlist>[^\s\(][^(](?:[^()]|\n)*?)\)\)(?!\))=indexterm2
[replacements]
(\w)\'(\w)=\1’\2
(?<!\\)\.\.\.=...
[blockdef-solution]
delimiter=^!!hint!!$
template=solution
options=sectionbody
[solution]
<div class=solution><div class=solution-text>
|
</div></div>
[source-highlight-block]
<pre{id? id="{id}"} data-language="{language}" class="snippet cm-s-default"{sandbox? data-sandbox="{sandbox}"}{focus? data-focus="true"}>
|
</pre>
[source-filter-style]
source-style=template="source-highlight-block",presubs=(),postsubs=("callouts",),posattrs=("style","language","src_numbered","src_tab"),filter="./bin/blockfilter -s {language}"
[blockdef-listing]
template::[source-filter-style]
[listingblock]
<pre{id? id="{id}"}>
|
</pre>
[indexsee-inlinemacro]
{empty}
[included-inlinemacro]
{text}
[excluded-inlinemacro]
{empty}
[header]
<!doctype html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{doctitle} :: Eloquent JavaScript</title>
<link rel=stylesheet href="js/node_modules/codemirror/lib/codemirror.css">
<script src="js/acorn_codemirror.js"></script>
<link rel=stylesheet href="css/ejs.css">
<script src="js/sandbox.js"></script>
<script src="js/ejs.js"></script>
<script>{chap_num?var chapNum = {chap_num};}{load_files?var sandboxLoadFiles = {load_files};}</script>
</head>
<div style="background: #ffb; border-bottom: 1px solid silver; padding: 6px 4em; text-align: center">
The <strong>3rd edition</strong> is available. <a href="/">Read it here</a>!
</div>
<article>
<nav>
{prev_link?<a href="{prev_link}.html" title="previous chapter">◀</a>}
<a href="index.html" title="cover">◆</a>
{next_link?<a href="{next_link}.html" title="next chapter">▶</a>}
</nav>
<h1{id? id="{id}"}>{chap_num?<div class=chap_num>Chapter {chap_num}</div>}{doctitle}</h1>
[footer]
<nav>
{prev_link?<a href="{prev_link}.html" title="previous chapter">◀</a>}
<a href="index.html" title="cover">◆</a>
{next_link?<a href="{next_link}.html" title="next chapter">▶</a>}
</nav>
</article>
[preamble]
|
[paradef-default]
normal-style=template="paragraph"
[paragraph]
<p{id? id="{id}"}>
|
</p>
[tags]
monospaced=<code>|</code>
[literal-inlinemacro]
<code>{passtext}</code>
[sect1]
<h2{id? id="{id}"}>{title}</h2>
|
[sect2]
<h3{id? id="{id}"}>{title}</h3>
|
[sect3]
<h4{id? id="{id}"}>{title}</h4>
|
[quoteblock]
<blockquote>
|
{attribution? <footer>{attribution}{citetitle?, <cite>{citetitle}</cite>}</footer>}
</blockquote>
[image-blockmacro]
<div class="image"{id? id="{id}"}>
<img src="{target}" alt="{alt={target}}">
</div>
[table]
<table{id? id="{id}"}>
{headrows#}<thead>
{headrows}
{headrows#}</thead>
{footrows#}<tfoot>
{footrows}
{footrows#}</tfoot>
{bodyrows}
</table>
[tabletags-default]
bodyrow=<tr>|</tr>
headdata=<th>|</th>
bodydata=<td>|</td>
paragraph=|