We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
markup=False
Given this code:
from rich.markup import escape from textual.app import App, ComposeResult from textual.widgets import Label class MarkupApp(App[None]): def compose(self) -> ComposeResult: yield Label("Vanilla: [is this here?]") yield Label("markup=False: [is this here?]", markup=False) yield Label("Escaped: " + escape("[is this here?]")) yield Label("Escaped and markup=False: " + escape("[is this here?]"), markup=False) if __name__ == "__main__": MarkupApp().run()
at the moment the result looks like this:
Note that the Label with markup=False is still swallowing the markup.
Label
If I go back to Textual 0.85 the result is as per the documentation:
The text was updated successfully, but these errors were encountered:
Don't forget to star the repository!
Follow @textualizeio for Textual updates.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Given this code:
at the moment the result looks like this:
Note that the
Label
withmarkup=False
is still swallowing the markup.If I go back to Textual 0.85 the result is as per the documentation:
The text was updated successfully, but these errors were encountered: