When the file comes from stdin, you have to set the base path manually
using the docdir attribute. Otherwise, AsciiDoc doesn't know where the root
is. You might have to play around with different attributes.

In Asciidoctor, you'd use the -B option for this purpose.

-Dan

On Wed, Jun 3, 2015 at 3:46 PM, j. van den hoff <[email protected]
> wrote:

> I see the following behaviour. a block macro such as
>
> image::subdir/somefile.png[]
>
> gets correctly resolved/included if input comes from a file. if, instead,
> the same input comes from standard in, `asciidoc' prepends the given
> relative path by the install path of the asciidoc.
>
> what am I missing?
>
> thanks
>
> joerg
>
> --
> Using Opera's revolutionary email client: http://www.opera.com/mail/
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Dan Allen | http://google.com/profiles/dan.j.allen

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to