Login  Register

Re: Including an .adoc fragment placed in parent directory

Posted by mojavelinux on Oct 15, 2019; 8:09pm
URL: https://discuss.asciidoctor.org/Including-an-adoc-fragment-placed-in-parent-directory-tp7228p7230.html

Yes, that's expected to work. But you need to make sure the safe mode is set to unsafe. Unsafe is the default for the CLI, but you need to declare it explicitly when using the API (safe: :unsafe).

I recommend always using forward slash as the file separator. It works on all operating systems.

include::../test.adoc[]

Best,

-Dan

On Tue, Oct 15, 2019 at 4:32 AM nopria [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Is it possible to include an .adoc fragment placed in the parent directory of the Asciidoctor document issuing the `include` command?

I tried

include::..\test.adoc[]

but it seems to not work.

Thanks.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Including-an-adoc-fragment-placed-in-parent-directory-tp7228.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux