Turns out the people (O'Reilly) who are remotely building the doc I am creating are running asciidoc with --safe. I'm trying to do that locally too so as to make sure what I do will build correctly on their end. But I see the following (asciidoc 8.6.8):
$ cd /tmp $ echo '= xxxx' > file.txt $ asciidoc --safe --doctype=book --backend=html file.txt asciidoc: ERROR: file.txt: line 1: unsafe: ifeval invalid asciidoc: FAILED: file.txt: line 1: ifeval invalid safe document When I run with --verbose and without --safe, the output seems to indicate what ifeval is being run. $ asciidoc --verbose --doctype=book --backend=html file.txt asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.8/etc/asciidoc/asciidoc.conf asciidoc: reading: /tmp/file.txt asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.8/etc/asciidoc/xhtml11.conf asciidoc: include1: /usr/local/Cellar/asciidoc/8.6.8/etc/asciidoc/stylesheets/asciidoc.css asciidoc: file.txt: line 1: ifeval: "source-highlight"=="pygments": False asciidoc: include1: /usr/local/Cellar/asciidoc/8.6.8/etc/asciidoc/javascripts/asciidoc.js asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.8/etc/asciidoc/filters/code/code-filter.conf asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.8/etc/asciidoc/filters/graphviz/graphviz-filter.conf asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.8/etc/asciidoc/filters/latex/latex-filter.conf asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.8/etc/asciidoc/filters/music/music-filter.conf asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.8/etc/asciidoc/filters/source/source-highlight-filter.conf asciidoc: file.txt: line 1: ifeval: "source-highlight"=="source-highlight": True asciidoc: file.txt: line 1: ifeval: "source-highlight"=="highlight": False asciidoc: file.txt: line 1: ifeval: "source-highlight"=="pygments": False asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.8/etc/asciidoc/lang-en.conf asciidoc: writing: /tmp/file.html Seems a conditional to test what source code highlighter is in use is causing the error in --safe mode. Am I doing something wrong here? Thanks a lot, again! Terry -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
