Closed arosien closed 3 years ago
This is due to a conflict between Asciidoctor core and an older version of Rouge when the include Asciidoctor
statement is used (by the extension). You can fix it by upgrading Rouge to the latest version (see https://rubygems.org/gems/rouge). A corresponding fix in Asciidoctor will be in the 2.0.11 release. See https://github.com/asciidoctor/asciidoctor/issues/3623
Thanks!
I'm also a bit out of date with the docker image:
REPOSITORY TAG IMAGE ID CREATED SIZE
asciidoctor/docker-asciidoctor latest 0c383e26e3d9 7 months ago 428MB
so I'll see if updating that fixes it.
so I'll see if updating that fixes it.
It does... excellent. Thanks for being so responsive!
Great news! Glad to help.
The sectnumoffset extension works for me when outputting HTML, but gives me this error when outputting PDF:
I use docker-asciidoctor and am running
asciidoctor-pdf
with additional flags-r ./lib/sectnumoffset-treeprocessor.rb -a sectnums -a sectnumoffset=9 --trace
.If I remove those extra flags the PDF renders fine, so somehow this extension is interfering somehow, maybe some ordering issue?
(originally posted in asciidoctor/asciidoctor-pdf#166)