Given the workarounds required for embedding SVG hyperlinks described in 
this issue:

I have decided to embed the SVG markup as an <svg> element entirely inline 
within the HTML document, rather than referring to a separate .svg file 
from an <object> tag.

To generate the SVG markup as a raw string, I used the following:

    Lucid.Base.renderText $ renderDia SVG (SVGOptions (mkWidth 200) Nothing 
"") my_diagram

as described here:

I am using diagrams-svg- and lucid-2.9.5, which are included in LTS 
Haskell version 5.9:

However, this technique places extra header elements above the <svg> 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"

Is there a method either in the lucid package or diagrams-svg to suppress 
these elements?

You received this message because you are subscribed to the Google Groups 
"diagrams-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
For more options, visit

Reply via email to