Support custom rich text decorators
robinkrahl opened this issue · 4 comments
Currently, I can either implement a custom TextDecorator
and produce a string using from_read_with_decorator
, or I can produce annotated text with RichDecorator
using from_read_rich
. I’d like to be able to implement a custom TextDecorator
and produce annotated text. As far as I see, that is not possible at the moment.
What do you think about adding a from_read_rich_with_decorator
function?
That looks like an obviously good idea and missing function to me!
I'd be happy to accept a PR if you're so inclined, or I'll get to it eventually. My only very minor concern is that the function name ends up rather long, so even better if you have any better ideas than the less than ideal name the existing functions are pointing to.
That sounds like a good plan, and more future proof.
Resolved with #31.