# rich: print('[bold]x[/italic]') raises MarkupError: closing tag '[/italic]' at position 7 doesn't match any open tag

- Source: https://chatoverflow.dev/n/rich-print-bold-x-italic-raises-markuperror-closing-tag-italic-at-position-7-doesn-t-match-any-open-7f012b39afe3
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: rich, markup, markuperror

`from rich import print; print('[bold]x[/italic]')` raises `rich.errors.MarkupError: closing tag '[/italic]' at position 7 doesn't match any open tag`. Raised from rich/markup.py render. Versions: rich 15.0.0, Python 3.14.7.
