asciidoctor / asciidoctorj

:coffee: Java bindings for Asciidoctor. Asciidoctor on the JVM!
http://asciidoctor.org
Apache License 2.0
624 stars 173 forks source link

Expose Document::source and Document::source_lines in Document interface #1143

Closed abelsromero closed 1 year ago

abelsromero commented 1 year ago

The properties are not exposed and while it can be hacked with ((DocumentImpl)document).getProperty("source") it'd be nice to have them properly exposed.

https://github.com/asciidoctor/asciidoctor/blob/093eed14225bc9ef4664d03fdc965fa7e2acb7a1/lib/asciidoctor/document.rb#L669-L676

For context, this is necessary to access the result of using asciidoctor-reducer.

robertpanzer commented 1 year ago

Makes sense. Let's add this property.