mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
lines and markup
This commit is contained in:
parent
507f54995a
commit
6b59f45c70
6 changed files with 88 additions and 29 deletions
|
@ -1,5 +1,5 @@
|
|||
.. _console_markup:
|
||||
|
||||
py
|
||||
Console Markup
|
||||
==============
|
||||
|
||||
|
@ -25,6 +25,14 @@ There is a shorthand for closing a style. If you omit the style name from the cl
|
|||
print("[bold red]Bold and red[/] not bold or red")
|
||||
|
||||
|
||||
Escaping
|
||||
~~~~~~~~
|
||||
|
||||
Occasionally you may want to print something that Rich would interpret as markup. You can *escape* square brackets by doubling them up. Here's an example::
|
||||
|
||||
print("foo[[bar]]")
|
||||
|
||||
|
||||
Rendering Markup
|
||||
----------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue