lines and markup

This commit is contained in:
Will McGugan 2020-04-13 12:24:13 +01:00
parent 507f54995a
commit 6b59f45c70
6 changed files with 88 additions and 29 deletions

View file

@ -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
----------------