Closed pela9 closed 4 years ago
The model for a description list item is different than the model for a regular list item. That's likely the problem. Each description list entry is a 2-d array of list items. The code needs to account for this.
See https://github.com/asciidoctor/asciidoctor/blob/master/lib/asciidoctor/converter/html5.rb#L526-L535
It would be really helpful if this bug could get some attention. Presently it hinders the use of all versions of asciidoctor-bibtex > 0.4.1. As @mojavelinux have commented above this should not be too serious to fix. I have for myself made a minimal fix in 0.6.0 that adds a simple null test and thereby avoids the exception (but don't find citations in the nested content), but my colleagues are dependent on gem install.
An PR is welcome.
I had the same issue and solved it by updating asciidoctor-bibtex through the following:
gem install asciidoctor-bibtex
I am running Asciidoctor 2.0.12 on macOS Catalina.
Given the following input (which asciidoctor without asciidoctor-bibtex accepts)
With asciidoctor-bibtex loaded it throws an error. Using the --trace option I get a stacktrace with last line:
So it seems there is a missing null test somewhere in this code?