gregturn / asciidoctor-packt

Backend and theme to convert Asciidoctor files into Packt Publishing OpenOffice doc
http://greglturnquist.com/category/learning-spring-boot
46 stars 13 forks source link

image::foo.png not working #5

Closed gregturn closed 10 years ago

gregturn commented 10 years ago

I used docbook's image.xml.slim as a basis, but it won't insert any of the attributes.

I have:

text:p text:style-name="imageblock" 
  draw:frame draw:style-name="imageblock" draw:name="image" text:anchor-type="paragraph" draw:z-index="1" svg:width="(attr :width)" svg:height="(attr :height)" 
    draw:image xlink:href="(@target)" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"

docbook has:

figure id=@id role=(attr :role) xreflabel=(attr :reftext)
  - if title?
    title=title
  mediaobject
    imageobject
      imagedata fileref=image_uri(attr :target) contentwidth=(attr :width) contentdepth=(attr :height) scale=(attr :scale) width=(attr :scaledwidth) scalefit=((attr? :scaledwidth) ? 1 : nil) align=(attr :align)
    textobject: phrase=attr :alt

Might be the double quotes.

gregturn commented 10 years ago

This is being worked in #10