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

Make Asciidoctor Options independent (#125) #134

Conversation

abelsromero
Copy link
Member

@abelsromero abelsromero commented Apr 18, 2024

Refactor construction of Asciidoctor options to make them independent
for each conversion. Now we can apply the original intended code where
we respect DocType if present.
Only template initialization is shared to reduce IO operations (create temp dirs).

  • Refactor options creation into AsciidoctorOptionsFactory
  • Remove shared attribute options from AsciidoctorConverter.
  • Remove unnecessary cleanup logic from AsciidoctorFilteredEnvironment.
  • Minor refactors and formatting fixes.

Closes #125

@abelsromero abelsromero marked this pull request as draft April 18, 2024 14:44
@abelsromero abelsromero force-pushed the issue-125/main/make-asciidoctor-options-immutable branch 3 times, most recently from 2a72452 to 828b855 Compare April 18, 2024 21:53
@abelsromero abelsromero changed the title Make Asciidoctor Options immutable (#125) Make Asciidoctor Options independent (#125) Apr 18, 2024
@abelsromero abelsromero marked this pull request as ready for review April 18, 2024 22:13
@abelsromero abelsromero force-pushed the issue-125/main/make-asciidoctor-options-immutable branch 2 times, most recently from 3857e05 to 0c9e6f0 Compare April 19, 2024 08:44
@abelsromero abelsromero merged commit bdf3646 into asciidoctor:main Apr 19, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid re-using options during conversion
1 participant