-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Is there any way to concatenate a Text object to a Markdown object such that they are in-line? Basically, if I have code like:
from rich.console import Console
from rich.markdown import Markdown
from rich.text import Text
console = Console()
md = Markdown("**Bold markdown text**")
styled_text = Text(" - followed by styled text", style="bold green")
console.print(md, styled_text)This code results in (but with color/bold):
Bold markdown text
- followed by styled text
while my desired output is:
Bold markdown text - followed by styled text
Is there any way to achieve this? Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels