File information and built-in messages render as plain text
Detect
- Tests, snapshots or CSS that expect a bold (
strong) file name inFileWidget's file information, or raw HTML in it. - Tests that expect markdown formatting in the
UnsupportedField*orFilesInfomessages, or that expect theInvalidObjectFieldmessage.
Change
FileWidget's file information used to render through markdown-to-jsx unconditionally, which made the file name bold and let raw HTML through. It now goes through RichDescription like every other translatable string. The English UnsupportedField* and FilesInfo strings no longer contain markdown syntax. InvalidObjectField is removed, since an incomplete ui:order now renders the object instead of an error; see TranslatableString.InvalidObjectField is removed.
Update the tests and CSS to expect plain text. To keep a bold file name, register a MarkdownTemplate, set ui:enableMarkdownInDescription, and supply a translateString that marks the name up, see Markdown renders only through a registered MarkdownTemplate. Raw HTML is never parsed.
Verify
- Snapshots of
FileWidgetand of the unsupported field messages show plain text.
Also read: