Fix markup.rst

Fix a minor problem in the document.

There is an extra closing bracket in the document
This commit is contained in:
jiaosenvip 2023-07-29 03:14:11 +08:00 committed by GitHub
parent aca9467ec6
commit 0379ab83a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ Escaping is important if you construct console markup dynamically, with ``str.fo
def greet(name):
console.print(f"Hello {name}!")
Calling ``greet("Will")`` will print a greeting, but if you were to call ``greet("[blink]Gotcha![/blink]"])`` then you will also get blinking text, which may not be desirable. The solution is to escape the arguments::
Calling ``greet("Will")`` will print a greeting, but if you were to call ``greet("[blink]Gotcha![/blink]")`` then you will also get blinking text, which may not be desirable. The solution is to escape the arguments::
from rich.markup import escape
def greet(name):