Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
abelsromero opened this issue Mar 14, 2023 · 1 comment · Fixed by #1145
Closed

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

abelsromero opened this issue Mar 14, 2023 · 1 comment · Fixed by #1145

Comments

@abelsromero
Copy link
Member

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
Copy link
Member

Makes sense. Let's add this property.

abelsromero added a commit to abelsromero/asciidoctorj that referenced this issue Mar 19, 2023
abelsromero added a commit to abelsromero/asciidoctorj that referenced this issue Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants