Releases: Textualize/rich
My math was wrong
This release contains a fix for truecolor to eight bit color conversion, which results in more accurate colors.
[13.3.1] - 2023-01-28
Fixed
- Fixed truecolor to eight bit color conversion #2785
Dependency update
New Markdown parser
v13.2.0 replaces the unmaintained commonmark library with markdown-it-py. This new parser has a lot more capabilities and will allow us to implement a number of additional Markdown features in the future.
The output from the Markdown renderable may change a little from previous versions.
[13.2.0] - 2023-01-19
Changed
- Switch Markdown parsing from commonmark to markdown-it-py #2439
Jupyter tracebacks fix
This release fixes tracebacks in Jupyter which didn't show the code.
Additionally tracebacks have two new parameters to hide double underscore and single underscore locals. See the changelog for details
[13.1.0] - 2023-01-14
Fixed
- Fixed wrong filenames in Jupyter tracebacks #2271
Added
- Added locals_hide_dunder and locals_hide_sunder to Tracebacks, to hide double underscore and single underscore locals. #2754
Changed
- Tracebacks will now hide double underscore names from locals by default. Set
locals_hide_dunder=Falseto restore previous behaviour.
Fix for splitting segments
Fix for an issue where Segment.split_cells produced the wrong result.
Mostly a hotfix for the benefit of Textual.
[13.0.1] - 2023-01-06
Fixed
- Fixed issue with Segment.split_cells for mixed single and double cell widths
Dropped Python3.6 support
Some relatively minor fixes and improvements. The most significant update (and the reason for the major version bump) is that Rich has dropped Python3.6 support.
If you are a Python3.6 user and can't upgrade for whatever reason, pin to version 12.6.0.
[13.0.0] - 2022-12-30
Fixed
- Reversed
preandcodetags in base HTML format #2642 - Improved detection of
attrslibrary, that isn't confused by the presence of theattrlibrary. - Fixed issue with
locals_max_lengthparameter not being respected in Traceback #2649 - Handling of broken
filenomade more robust. Fixes #2645 - Fixed missing
filenoon FileProxy
Changed
- Bumped minimum Python version to 3.7 #2567
- Pretty-printing of "tagged"
__repr__results is now greedy when matching tags #2565 progress.tracknow supports deriving total from__length_hint__
Added
- Add type annotation for key_separator of pretty.Node #2625
The FORCE_COLOR edition
NOTE: 12.6.0 may be the last version to support Python3.6. The next version will be 13.0.0, and will be Python3.7+
[12.6.0] - 2022-10-02
Added
- Parse ANSI escape sequences in pretty repr #2470
- Add support for
FORCE_COLORenv var #2449 - Allow a
max_depthargument to be passed to theinstall()hook #2486 - Document using
Noneas name in__rich_repr__for tuple positional args #2379 - Add
font_aspect_ratioparameter in SVG export https://github.com/Textualize/rich/pull/2539/files - Added
Table.add_sectionmethod. #2544
Fixed
- Handle stdout/stderr being null #2513
- Fix NO_COLOR support on legacy Windows #2458
- Fix pretty printer handling of cyclic references #2524
- Fix missing
modeproperty on file wrapper breaking uploads viarequests#2495 - Fix mismatching default value of parameter
ensure_ascii#2538 - Remove unused height parameter in
Layoutclass #2540 - Fixed exception in Syntax.rich_measure for empty files
Changed
- Removed border from code blocks in Markdown
v12.5.1: Merge pull request #2387 from Textualize/type-alias
v12.5.0: Merge pull request #2385 from Textualize/divide
[12.5.0] - 2022-07-11
Added
- Environment variables
JUPYTER_COLUMNSandJUPYTER_LINESto control width and height of console in Jupyter - Markdown friendly
Boxstyle,MARKDOWN, for rendering tables ready to copy into markdown files inspectwill prefix coroutine functions withasync def
Changed
- Default width of Jupyter console size is increased to 115
- Optimized Segment.divide
Style.__add__will no longer returnNotImplemented- Remove rich._lru_cache
Fixed
- Fix Rich clobbering cursor style on Windows #2339
- Fix text wrapping edge case #2296
- Allow exceptions that are raised while a Live is rendered to be displayed and/or processed #2305
- Fix crashes that can happen with
inspectwhen docstrings contain some special control codes #2294 - Fix edges used in first row of tables when
show_header=False#2330 - Fix interaction between
Capturecontexts andConsole(record=True)#2343 - Fixed hash issue in Styles class #2346
- Fixed bug in
Segment.split_and_crop_lines
v12.4.4: Merge pull request #2290 from Textualize/more-svg-tweaks
[12.4.4] - 2022-05-24
Changed
- Added clipping per line to SVG output to avoid box characters overlapping
- Optimized SVG output
