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
commit9315e8cf96797adac9f81552624e832a78c9fcc6 (patch)
treeb5072bba4f3661332ea2b667633d55130a438ed1 /html5.conf
parentde87f7ad58d43fb8f5ba5d94b5c5fd3b1f507614 (diff)
downloadasciidoc-git-9315e8cf96797adac9f81552624e832a78c9fcc6.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[]