diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2012-03-30 10:39:16 +1300 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2012-03-30 10:39:16 +1300 |
commit | 9315e8cf96797adac9f81552624e832a78c9fcc6 (patch) | |
tree | b5072bba4f3661332ea2b667633d55130a438ed1 /html5.conf | |
parent | de87f7ad58d43fb8f5ba5d94b5c5fd3b1f507614 (diff) | |
download | asciidoc-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.conf | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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[] |