Skip to content

Commit

Permalink
Validate and fix some failed snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Jan 18, 2023
1 parent 73a9ec0 commit 644e0c0
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 47 deletions.
92 changes: 51 additions & 41 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rich/default_styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"markdown.emph": Style(italic=True), # For commonmark backwards compatibility
"markdown.strong": Style(bold=True),
"markdown.code": Style(bold=True, color="cyan", bgcolor="black"),
"markdown.code_block": Style(dim=True, color="cyan", bgcolor="black"),
"markdown.code_block": Style(color="cyan", bgcolor="black"),
"markdown.block_quote": Style(color="magenta"),
"markdown.list": Style(color="cyan"),
"markdown.item": Style(),
Expand Down
4 changes: 3 additions & 1 deletion rich/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,5 +671,7 @@ def __rich_console__(
pydoc.pager(fileio.getvalue())

else:
console = Console(force_terminal=args.force_color, width=args.width)
console = Console(
force_terminal=args.force_color, width=args.width, record=True
)
console.print(markdown)
2 changes: 1 addition & 1 deletion tests/_card_render.py

Large diffs are not rendered by default.

0 comments on commit 644e0c0

Please sign in to comment.