Add docs/FAQ for breaking changes to markup #5686
TomJGooding
started this conversation in
Ideas
Replies: 0 comments
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.
-
This is obviously a contrived example, but imagine you have created an app something like this:
Before Textual v2.0.0, it doesn't matter that you haven't escaped any of the square brackets:
But now in the latest version of Textual (v3.0.0) the tabs and static widget will crash with a
MarkupError
. Apparently the button doesn't crash, but instead just removes the [Esc] text. I'm not sure what causes some invalid tags to crash while others just removed?I suspect this will be a common issue, not only for users upgrading from a previous version but also developers new to Textual. I think it is worthwhile adding something about handling invalid markup to the docs and/or FAQ.
Beta Was this translation helpful? Give feedback.
All reactions