Login  Register

max depth for includes?

Posted by thomas burger on Nov 05, 2013; 10:24am
URL: https://discuss.asciidoctor.org/max-depth-for-includes-tp936.html

Hello,

Seem to be stuck. I can see that max-include-depth has a default value set to 64, however it still seems that 1 is the limit for include depth? Explicitly setting via cli max-include-depth=0 works to disable includes, but setting above 1 does not seem to make any difference. Setting depth=64 didn't work either. Is there are a trick to getting past a depth of 1 ?  

> asciidoctor --version
Asciidoctor 0.1.4 [http://asciidoctor.org]
> asciidoctor -a max-include-depth=64 -S unsafe file1

file1:
THIS IS FILE ONE. +
LETS INCLUDE TWO: +
include::file2[depth=64]

file2:
THIS IS FILE TWO. +
LETS INCLUDE THREE: +
include::file3[depth=64]

file3:
THIS IS FILE THREE.

Result:
THIS IS FILE ONE.

LETS INCLUDE TWO:

THIS IS FILE TWO.

LETS INCLUDE THREE:

include::file3[depth=64]