Skip to main content

Version 8.8.2

Wannes De Backer
Front-end Developer Web

🚀 New Feature​

  • chameleon-kotlin: ChRichContent got an optional format parameter. With ChRichContentFormat.Markdown the text is read as basic Markdown (headings, lists, bold, italic, links and image tokens). The default stays ChRichContentFormat.Html. !2865
  • chameleon-swift-components: RichContent got an optional format parameter. With .markdown the text is read as basic Markdown, using the same subset as Android. The default stays .html. !2866
  • chameleon-swift-components: Added value-based inits to RichContent.Model, so an already resolved Typography and Color can be passed instead of TC keypaths. Existing keypath inits are unchanged. !2868

🐛 Bug Fix​

  • chameleon-swift-components: Replaced the XMLParser based HTML parser with a SwiftSoup-backed HTMLTextParser, fixing text that broke or lost its formatting when nested tags were closed in a different order. !2861
  • chameleon-swift: Percentage line heights are now resolved against the font size instead of the font's natural line height, aligning Swift with Android and CSS. Multi-line text with a percentage line height renders with tighter line spacing than before. !2857

🏠 Internal​

  • Updates to dependencies:
  • Fixed security findings: updated dependencies, hardened the docs theme assets plugin, the CDN tree viewer and the Docker pnpm install. !2851
  • Stabilised Percy web snapshots by waiting for the story to fully render before capturing. !2850