questions/square_brackets.question.md
raw| 1 | --- |
| 2 | title: "Why does content in square brackets disappear?" |
| 3 | alt_titles: |
| 4 | - "Can not print a [string]" |
| 5 | --- |
| 6 | |
| 7 | Rich will treat text within square brackets as *markup tags*, for instance `"[bold]This is bold[/bold]"`. |
| 8 | |
| 9 | If you are printing strings with literally square brackets you can either disable markup, or escape your strings. |
| 10 | See the docs on [console markup](https://rich.readthedocs.io/en/latest/markup.html) for how to do this. |