You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, it's only possible to override the optimizer by implementing (or patching) the built-in Asciidoctor::PDF::Optimizer class (see README). Instead, it should be possible to pass a custom class or object to the API using the :pdf_optimizer option.
I'm going to create a separate issue for allowing new optimizers to be registered by name, then activated using the pdf-optimizer attribute. This issue will be repurposed to add the :pdf_optimizer option to the API.
mojavelinux
changed the title
Allow optimizer to be pluggable
Allow optimizer to be specified using the :pdf_optimizer option
Sep 3, 2022
Currently, it's only possible to override the optimizer by implementing (or patching) the built-in Asciidoctor::PDF::Optimizer class (see README). Instead, it should be possible to pass a custom class or object to the API using the
:pdf_optimizer
option.The interface for the Optimizer is:
An alternative would be to allow the class to self register, similar to how the syntax highlighter adapters or converter work in core.
The text was updated successfully, but these errors were encountered: