Am 30.07.2012 12:16, schrieb Lex Trotman:
On 30 July 2012 19:43, Wilhelm <[email protected]> wrote:
Hi,
just noticed, that the following doesn't work if generated with the data-uri
option:
Test
====
WM
:Author Initials: WM
:lang: de
:doctype: book
:toc:
:icons:
:numbered:
:iconsdir: images/icons
:imagesdir: images
doesnt work: image:{imagesdir}/icons/up.svg["Download",height=22]
Hi,
Yes, the embedded data mimetype is derived from the file extension,
which is fine for png, jpeg, gif, but the svg mime type is svg+xml
which isn't the extension. It probably also would not work for jpg.
Is this wrong mapping considered an error in asciidoc?
Since svg is xml you should be able to simply include it without the data-uri.
That's not an option.
Cheers
Lex
works: image:{imagesdir}/icons/up.png["Download",height=22]
--
Wilhelm
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.
--
Wilhelm
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.