Closed
Description
- I've checked docs and closed issues for possible solutions.
- I can't find my issue in the FAQ.
Describe the bug
from rich.console import Console
from rich.panel import Panel
from rich.syntax import Syntax
yaml_syntax = """
test: true
examples:
ex1: 1
ex2: 2
"""
code_panel = Panel(Syntax(yaml_syntax, lexer="yaml"))
console = Console(force_terminal=True)
console.print(code_panel)
Works fine in a terminal:

But not on GitHub Actions:
Tip
When force_terminal
is not set for Console
, the problem is solved, but then of course you don't get any syntax highlighting!

Note
The panel is just there to better illustrate the issue; the results are the same without it.