All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Added collapse_padding option to Table.
- Some style attributes may be abbreviated (b for bold, i for italic etc). Previously abbreviations worked in console markup but only one at a time, i.e. "[b]Hello[/]" but not "[b i]Hello[/]" -- now they work everywhere.
- Renamed 'text' property on Text to 'plain'. i.e. text.plain returns a string version of the Text instance.
- Fixed zero division if total is 0 in progress bar
### Added
- Added rich.align.Align class
- Added justify argument to Console.print and console.log
- Changed progress bars to write to stdout on terminal and hide on non-terminal
- Fixed incorrect file and link in progress.log
- Fixes for legacy windows: Bar, Panel, and Rule now use ASCII characters
- show_cursor is now a no-op on legacy windows
### Added
- Added Console.input
- Disable progress bars when not writing to a terminal
- Issue with progress of one line`
- Added -p switch to python -m rich.markdown to page output
- Added Console.control to output control codes
- Changed Console log_time_format to no longer require a space at the end
- Added print and log to Progress to render terminal output when progress is active
- Stripped cursor moving control codes from text
- Added hyperlinks to Style and markup
- Added justify and code theme switches to markdown command
- Added
python -m rich.syntax
command
- Issue with Windows legacy support Textualize#59
- Applied console markup after highlighting
- Documented highlighting
- Changed Markup parser to handle overlapping styles
- Relaxed dependency on colorama
- Allowed Theme to accept values as style definitions (str) as well as Style instances
- Added a panel to emphasize code in Markdown
- Added markup.escape
- Added
python -m rich.theme
command - Added
python -m rich.markdown
command - Added rendering of images in Readme (links only)
- Fixed Text.assemble not working with strings Textualize#57
- Fixed table when column widths must be compressed to fit
- Improvements to repr highlighter to highlight URLs
- Fixed incorrect markdown rendering for quotes and changed style
- Removed debug print from rich.progress
- Added Table.show_lines to render lines between rows
- Added markup escape with double square brackets
- Fix row_styles applying to header
- Added force_terminal option to
Console.__init__
- Added Table.row_styles to enable zebra striping.
- Fixed background in Syntax
- Broken wrapping of long lines
- Fixed wrapping in Syntax
- Added word_wrap option to Syntax, which defaults to False.
- Added word_wrap option to Traceback.
- Experimental Jupyter notebook support: from rich.jupyter import print
- Smarter number parsing regex for repr highlighter
- uuid highlighter for repr
- Added 'test card', run python -m rich
- Detected windows terminal, defaulting to colorama support
- Fixed table scaling issue
- CJK right align
- Fixed issue with 0 speed resulting in zero division error
- Changed signature of Progress.update
- Made calling start() a second time a no-op
- Added progress.DownloadColumn
- CJK support
- Console level highlight flag
- Added encoding argument to Syntax.from_path
- Dropped support for Windows command prompt (try https://www.microsoft.com/en-gb/p/windows-terminal-preview/)
- Added task_id to Progress.track
- KeyError for missing pygments style
- Issue with control codes being used in length calculation
- Remove current_style concept, which wasn't really used and was problematic for concurrency
- Added width option to Panel
- Change special method
__render_width__
to__measure__
- Dropped the "markdown style" syntax in console markup
- Optimized style rendering
- Added Console.show_cursor method
- Added Progress bars
- Fixed wrapping when a single word was too large to fit in a line
- Added tab_size to Console and Text
- Added protocol.is_renderable for runtime check
- Added emoji switch to Console
- Added inherit boolean to Theme
- Made Console thread safe, with a thread local buffer
- Console.markup attribute now effects Table
- SeparatedConsoleRenderable and RichCast types
- Fixed tabs breaking rendering by converting to spaces
- Replaced
__console_str__
with__rich__
- Readme links in Pypi
- Added Traceback rendering and handler
- Added rich.constrain
- Added rich.rule
- Fixed unnecessary padding
- Fixed Windows color support
- Fixed line width on windows issue (Textualize#7)
- Fixed Pretty print on Windows
- Added rich.logging
- Added colorama for Windows support
- First official release, API still bto be stabilized