- [X] I've checked [docs](https://rich.readthedocs.io/en/latest/introduction.html) and [closed issues](https://github.com/Textualize/rich/issues?q=is%3Aissue+is%3Aclosed) for possible solutions. - [X] I can't find my issue in the [FAQ](https://github.com/Textualize/rich/blob/master/FAQ.md). **Describe the bug** ```python 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: <img width="382" alt="Screenshot 2024-09-25 at 17 07 19" src="https://github.com/user-attachments/assets/d52c0df5-a572-4946-b236-4b4b9d1bdc5b"> 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! <img width="594" alt="Screenshot 2024-09-25 at 17 07 54" src="https://github.com/user-attachments/assets/c212fe80-ca26-4213-9083-bafedbd8b21f"> > [!NOTE] > The panel is just there to better illustrate the issue; the results are the same without it.