diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2010-02-23 12:44:23 +1300 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2010-02-23 12:44:23 +1300 |
commit | 2bf6d81a19f11e22b0fcec16be371f8e14ad7d26 (patch) | |
tree | 5a5dd14ea9808dfa2510c4da64cf4d7195f26182 /xhtml11.conf | |
parent | 3f9377a1e037bf5abadaaab36833126e183e438f (diff) | |
download | asciidoc-2bf6d81a19f11e22b0fcec16be371f8e14ad7d26.tar.gz |
xhtml11 backend: Callouts and callout lists display callout icons when the
'icons' attribute is defined. See
http://groups.google.com/group/asciidoc/browse_frm/thread/8eda3ea812968854
Diffstat (limited to 'xhtml11.conf')
-rw-r--r-- | xhtml11.conf | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/xhtml11.conf b/xhtml11.conf index d34736d..801343e 100644 --- a/xhtml11.conf +++ b/xhtml11.conf @@ -118,8 +118,8 @@ latexmath-style=template="latexmathblock",subs=[] {2#}<span class="footnote" id="_footnote_{1}"><br />[{2}]<br /></span>
[callout-inlinemacro]
-# Callout.
-<b><{index}></b>
+ifndef::icons[<b><{index}></b>]
+ifdef::icons[<img src="{iconsdir}/callouts/{index}.png" alt="{index}" />]
# Comment line macros.
[comment-inlinemacro]
@@ -168,9 +168,16 @@ item= text=<p>|</p>
[listtags-callout]
+ifndef::icons[]
list=<div class="colist{style? {style}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div>
item=<li>|</li>
text=<p>|</p>
+endif::icons[]
+ifdef::icons[]
+list=<div class="colist{style? {style}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<table>|</table></div>
+item=<tr><td><img src="{iconsdir}/callouts/{listindex}.png" alt="{listindex}" /></td><td>|</td></tr>
+text=|
+endif::icons[]
[listtags-glossary]
list=<div class="dlist{style? {style}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div>
|