The official chat room for Asciidoctor is now located at https://asciidoctor.zulipchat.com. Please join us there!
source-highlighter
with my prepress
pdf? <execution>
<id>process-asciidoc-pdf-prepress</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<attributes>
<media>prepress</media>
<pdf-style>default-for-print</pdf-style>
<source-highlighter/> <!-- doesn't work either -->
<source-highlighter>none</source-highlighter>
</attributes>
<backend>pdf</backend>
<outputDirectory>${project.build.directory}/pdf-prepress</outputDirectory>
<skip>false</skip>
</configuration>
</execution>
subs="normal"
)
Anyone have any idea why asciidoctor might fail to run pygmentize
with the following error?
8: from /home/will/.gems/gems/asciidoctor-2.0.17/lib/asciidoctor/syntax_highlighter/pygments.rb:16:in `highlight'
7: from /home/will/.gems/gems/pygments.rb-2.3.0/lib/pygments/lexer.rb:61:in `find_by_alias'
6: from /usr/lib/ruby/2.7.0/singleton.rb:123:in `instance'
5: from /usr/lib/ruby/2.7.0/singleton.rb:123:in `synchronize'
4: from /usr/lib/ruby/2.7.0/singleton.rb:125:in `block in instance'
3: from /usr/lib/ruby/2.7.0/singleton.rb:125:in `new'
2: from /home/will/.gems/gems/pygments.rb-2.3.0/lib/pygments/lexer.rb:136:in `initialize'
1: from /home/will/.gems/gems/pygments.rb-2.3.0/lib/pygments/lexer.rb:136:in `each_value'
/home/will/.gems/gems/pygments.rb-2.3.0/lib/pygments/lexer.rb:141:in `block in initialize': undefined method `downcase' for nil:NilClass (NoMethodError)
Pygments.rb and asciidoctor installed via gem