This passes svg output from graphviz as regular images for non-xhtml11
backends, which works fine with docbook at least.

Signed-off-by: Keith Packard <[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.
>From 694c800b1705d7c7a8c88c64829370c5711fd8c3 Mon Sep 17 00:00:00 2001
From: Keith Packard <[email protected]>
Date: Fri, 12 Feb 2016 19:05:16 -0800
Subject: [PATCH 2/5] filter/graphviz: Allow graphviz SVG output for
 non-xhtml11 backends

This passes svg output from graphviz as regular images for non-xhtml11
backends, which works fine with docbook at least.

Signed-off-by: Keith Packard <[email protected]>
---
 filters/graphviz/graphviz-filter.conf | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/filters/graphviz/graphviz-filter.conf b/filters/graphviz/graphviz-filter.conf
index f1ca264..adc85a2 100644
--- a/filters/graphviz/graphviz-filter.conf
+++ b/filters/graphviz/graphviz-filter.conf
@@ -38,6 +38,10 @@ ifdef::basebackend-xhtml11[]
 <div class="title">{caption={figure-caption} {counter:figure-number}. }{title}</div>
 </div>
 endif::basebackend-xhtml11[]
+ifndef::basebackend-xhtml1[]
+[graphviz-svg-block]
+template::[filter-image-blockmacro]
+endif::basebackend-xhtml1[]
 
 #
 # DEPRECATED: Pre 8.2.7 filter definition.
-- 
2.7.0

Reply via email to