Skip to main content
Version: Current (v7.0.0-beta.3)

File information and built-in messages render as plain text

Detect​

  • Tests, snapshots or CSS that expect a bold (strong) file name in FileWidget's file information, or raw HTML in it.
  • Tests that expect markdown formatting in the UnsupportedField* or FilesInfo messages, or that expect the InvalidObjectField message.

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 FileWidget and of the unsupported field messages show plain text.

Also read: