I just tried it on AsciiDoc 8.5.3 echo 'image::../images/image.png["Alt text",float="right"]'|asciidoc - s -
What I got is <div class="paragraph"><p><em><span class="image"> <img src=":../images/image.png" alt="Alt text" /> </span></em></p></div> and then I tried another one echo 'image::../images/image.png[align="right"]'|asciidoc.py -s - and get: <div class="paragraph"><p><em><span class="image"> <img src=":../images/image.png" alt=":../images/image.png" /> </span></em></p></div> It seems image block is seriously bugged. On 2月6日, 上午12時19分, Stuart Rackham <[email protected]> wrote: > Wolter Hellmund wrote: > > Hi, I am using animageblock in my site, but it won't float. > > This is the syntax I am using: > > >image::../images/image.png["Alt text",float="right"] > >image::../images/image.png["Alt text",float=right] > > > I tried with both, but they don't make theimagefloat. > > > This is the html output: > > > <div class="imageblock"> > > <div class="content"> > > <img src ...> > > </div> > > </div> > > > What am I doing wrong? > > Floats were introduced in 8.5.0, note how the style is set to float: > > $ echo 'image::../images/image.png["Alt text",float="right"]'|asciidoc -s - > <div class="imageblock" style="float:right;"> > <div class="content"> > <img src="../images/image.png" alt="Alt text" /> > </div> > </div> > > Cheers, Stuart > > > > -- 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.
