This is a relatively minor release, mostly focused on the new pretty-printing functionality. I wanted to release this before the next major update, as that may take some time and these features are really useful in their own right.
The new MarkupLanguage.prettify method is quite customizable: It allows you to customize all of the builtin styles it uses, as well as set indentation count, force ANSI sequences to be displayed as markup or force data-structures to be displayed flat (condensed). The default style looks really good in my opinion, and it should be a very useful tool.
Obviously, the idea was inspired by Rich's implementation of the same concept, but I tried to fix all my grievances with that version.
Additions
- Add
Terminal.pixel_sizeattribute (6e350b1, ce27e3c) - Add
prettify_ansi,pprintandsetup_displayhook()methods toMarkupLanguage`` (5bdf617)
Bugfixes
Showcase
Here is a quick demo of some of the prettifying functionality.
