The current implementation of option handling is poor. For example:
Global/document options can be set with the GlobalOption keyword
Plugin options can be provided by the -Options parameter on the Export-Document cmdlet
There are checks in the OutText* methods to check for missing text-based options, adding them where missing
There should be an simpler way merging global and plugin options. This should reduce code duplication and support plugins other than just the Text plugin.
The current implementation of option handling is poor. For example:
GlobalOption
keyword-Options
parameter on theExport-Document
cmdletThere should be an simpler way merging global and plugin options. This should reduce code duplication and support plugins other than just the Text plugin.