Closed ManDay closed 1 year ago
I'll look into it asap.
data-uri
is handled by the html5 backend; not by this extension. See https://github.com/asciidoctor/asciidoctor/blob/main/lib/asciidoctor/abstract_node.rb#L323 for the details.
It only kicks in when the configured safe mode is less than SECURE
. Could you check which safety mode you're using?
I am using asciidoctor
on CLI as
asciidoctor -a data-uri -r asciidoctor-diagram -o /tmp/script/index.html source.adoc
so I assume that makes it UNSAFE
? Should I verify this somehow?
Maybe I made a mistake (perhaps I judged from the presence of the SVG files in the directory). I made another test and now I have a data-uri. I will verify this with my original document instantly and report back. Sorry for that!
Please accept my apologies for this, it turns out it was my mistake and data-uri
does work. I must have mixed something up and come to the wrong conclusions!
data-uri
seems to be ignored in asciidoctor 2.0.18 (tried with[gnuplot,format=svg]
) for asciidoctor-diagram 2.0.5 generated images, while it works for other images of theimage:
type, both SVG and JPG.