(renderable: RenderableType, no_wrap: bool = False)
| 16 | |
| 17 | |
| 18 | def render(renderable: RenderableType, no_wrap: bool = False) -> str: |
| 19 | console = Console( |
| 20 | width=100, file=io.StringIO(), color_system="truecolor", legacy_windows=False |
| 21 | ) |
| 22 | console.print(renderable, no_wrap=no_wrap) |
| 23 | output = replace_link_ids(console.file.getvalue()) |
| 24 | return output |