asciidoctor / asciidoctor-latex

:triangular_ruler: Add LaTeX features to AsciiDoc & convert AsciiDoc to LaTeX
http://asciidoctor.org
Other
111 stars 26 forks source link

resolves #59 use correct property to get label (aka id) of ref #60

Closed mojavelinux closed 6 years ago

mojavelinux commented 6 years ago

The converter for the inline ref was extracting the label (aka id) from the text. However, the label is already available as a property. In Asciidoctor < 1.5.6, the label was stored on the target property. Although still supported, the preferred property is id. I have set up to converter look at the id property first and fallback to the target.

This fixes a NilClass exception when using Asciidoctor LaTeX with Asciidoctor >= 1.5.6.

mojavelinux commented 6 years ago

I'm confident this is the right fix.