Closed Xitian9 closed 3 years ago
Are there any further changes needed to merge this?
Are there any further changes needed to merge this?
Sorry, I will have a look at this merge request and the others this weekend. One thing I was concerned about was that the signature of formatted
changed. But since we're breaking compatibility anyway it probably does not matter.
Yes, that's true. I originally had this as multiformatted
, but replaced the old formatted
because it seemed redundant.
Something to note: even though the signature changes many common use cases will still work, due to the IsString
instance of Formatted
.
Something to note: even though the signature changes many common use cases will still work, due to the
IsString
instance ofFormatted
.
Yes, that was exactly my train of thought. :)
This type provides an instance of cell that allows adding backend-specific formatting, including different formatting applied to different parts of the content.
Fixes #11.
I think the naming and structure is not ideal, but I wanted to submit this to give you a chance for feedback. Ideally we would replace
Formatted
with this structure, as it is just a special case, but you may want a different migration/backwards compatibility scheme.