Search code examples
jekylljekyll-extensionsasciidoctor

How to disable Safe Mode on jekyll-asciidoc plugin


I am importing an external file using the "jekyll-asciidoc" plugin.

[source,groovy]
----
include::   {projectdir}/src/test/resources/examples/abc.groovy[tags=example1,indent=0]
----

Jekyll doesn't want to include that file because it is outside the folder of my website. That is the message:

asciidoctor: WARNING: include file has illegal reference to ancestor of jail, auto-recovering

How can I disable the asciidoctor "Safe Mode" from the Jekyll configuration file?


Solution

  • You can try :

    asciidoctor:
      safe: 0