summaryrefslogtreecommitdiff
path: root/html5.conf
diff options
context:
space:
mode:
authorStuart Rackham <srackham@methods.co.nz>2012-03-30 10:39:16 +1300
committerStuart Rackham <srackham@methods.co.nz>2012-03-30 10:39:16 +1300
commitde32cc5bd3d8e739069364fa1b815134342e8c06 (patch)
treeb5072bba4f3661332ea2b667633d55130a438ed1 /html5.conf
parent12f76a08c6d694020e1e63df7cb52de65602fbf2 (diff)
downloadasciidoc-de32cc5bd3d8e739069364fa1b815134342e8c06.tar.gz
Fixed pygments source not being highlighted (pygments.css was not picked up by
new 'source-highlighter' attribute).
Diffstat (limited to 'html5.conf')
-rw-r--r--html5.conf12
1 files changed, 12 insertions, 0 deletions
diff --git a/html5.conf b/html5.conf
index b463036..c0139b5 100644
--- a/html5.conf
+++ b/html5.conf
@@ -544,7 +544,13 @@ bodydata=<td class="tableblock halign-{colalign=left}">|</td>
{title%}<title>{doctitle=}</title>
ifdef::linkcss[]
<link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}.css" type="text/css">
+ifeval::["{source-highlighter}"=="pygments"]
+<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">
+endif::[]
+
+# DEPRECATED: 'pygments' attribute.
ifdef::pygments[<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">]
+
ifdef::toc2[<link rel="stylesheet" href="{stylesdir=.}/toc2.css" type="text/css" />]
<link rel="stylesheet" href="{stylesdir=.}/{stylesheet}" type="text/css">
endif::linkcss[]
@@ -552,9 +558,15 @@ ifndef::linkcss[]
<style type="text/css">
include1::{theme%}{stylesdir=./stylesheets}/asciidoc.css[]
include1::{themedir}/{theme}.css[]
+ifeval::["{source-highlighter}"=="pygments"]
+include1::{stylesdir=./stylesheets}/pygments.css[]
+endif::[]
+
+# DEPRECATED: 'pygments' attribute.
ifdef::pygments[]
include1::{stylesdir=./stylesheets}/pygments.css[]
endif::pygments[]
+
ifdef::toc2[]
include1::{stylesdir=./stylesheets}/toc2.css[]
endif::toc2[]