Replies: 1 comment
-
My
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello and cheers on a very cool project!
I am trying to render some Rich text with markup in a Textual App (CSS branch). I expected that
Static(Text.from_markup("[magenta]a[/]"))
would render a magenta "a". Instead, it renders a normal "a". This is weird to me: ifText
isn't supported inStatic
, then I would expect to see "[magenta]a[/]", i.e. the escapedText
. Is this intended behavior?Also, markup like
[bold]
does work, and[bold magenta]
will bold the text without changing the color.Below is an example, including the simplest "solution" I could find. Just for clarity, I would expect to see:
but instead see:
Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions